<!DOCTYPE html>

<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

<title>class Time - Rails Framework Documentation</title>

<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
</script>

<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>


<body id="top" class="class">
<nav id="metadata">
  <nav id="home-section" class="section">
  <h3 class="section-header">
    <a href="./index.html">Home</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </h3>
</nav>


  <nav id="search-section" class="section project-section" class="initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <h3 class="section-header">
      <input type="text" name="search" placeholder="Search" id="search-field"
             title="Type to search, Up and Down to navigate, Enter to load">
    </h3>
  </form>

  <ul id="search-results" class="initially-hidden"></ul>
</nav>


  <div id="file-metadata">
    <nav id="file-list-section" class="section">
  <h3 class="section-header">Defined In</h3>
  <ul>
    <li>/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/json/encoding.rb
    <li>/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/marshal.rb
    <li>/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/zones.rb
    <li>/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/acts_like.rb
    <li>/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb
    <li>/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/conversions.rb
    <li>/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/publicize_conversion_methods.rb
  </ul>
</nav>

    
  </div>

  <div id="class-metadata">
    
    <nav id="parent-class-section" class="section">
  <h3 class="section-header">Parent</h3>
  
  <p class="link"><a href="Object.html">Object</a>
  
</nav>

    
    <!-- Method Quickref -->
<nav id="method-list-section" class="section">
  <h3 class="section-header">Methods</h3>

  <ul class="link-list">
    
    <li><a href="#method-c-3D-3D-3D">::===</a>
    
    <li><a href="#method-c-_load">::_load</a>
    
    <li><a href="#method-c-_load_without_utc_flag">::_load_without_utc_flag</a>
    
    <li><a href="#method-c-_load_without_zone">::_load_without_zone</a>
    
    <li><a href="#method-c-current">::current</a>
    
    <li><a href="#method-c-days_in_month">::days_in_month</a>
    
    <li><a href="#method-c-find_zone">::find_zone</a>
    
    <li><a href="#method-c-find_zone-21">::find_zone!</a>
    
    <li><a href="#method-c-local_time">::local_time</a>
    
    <li><a href="#method-c-time_with_datetime_fallback">::time_with_datetime_fallback</a>
    
    <li><a href="#method-c-use_zone">::use_zone</a>
    
    <li><a href="#method-c-utc_time">::utc_time</a>
    
    <li><a href="#method-c-zone">::zone</a>
    
    <li><a href="#method-c-zone-3D">::zone=</a>
    
    <li><a href="#method-i-2D">#-</a>
    
    <li><a href="#method-i-3C-3D-3E">#&lt;=&gt;</a>
    
    <li><a href="#method-i-_dump">#_dump</a>
    
    <li><a href="#method-i-_dump_without_utc_flag">#_dump_without_utc_flag</a>
    
    <li><a href="#method-i-_dump_without_zone">#_dump_without_zone</a>
    
    <li><a href="#method-i-acts_like_time-3F">#acts_like_time?</a>
    
    <li><a href="#method-i-advance">#advance</a>
    
    <li><a href="#method-i-ago">#ago</a>
    
    <li><a href="#method-i-all_day">#all_day</a>
    
    <li><a href="#method-i-all_month">#all_month</a>
    
    <li><a href="#method-i-all_quarter">#all_quarter</a>
    
    <li><a href="#method-i-all_week">#all_week</a>
    
    <li><a href="#method-i-all_year">#all_year</a>
    
    <li><a href="#method-i-at_beginning_of_day">#at_beginning_of_day</a>
    
    <li><a href="#method-i-at_beginning_of_hour">#at_beginning_of_hour</a>
    
    <li><a href="#method-i-at_beginning_of_month">#at_beginning_of_month</a>
    
    <li><a href="#method-i-at_beginning_of_quarter">#at_beginning_of_quarter</a>
    
    <li><a href="#method-i-at_beginning_of_week">#at_beginning_of_week</a>
    
    <li><a href="#method-i-at_beginning_of_year">#at_beginning_of_year</a>
    
    <li><a href="#method-i-at_end_of_month">#at_end_of_month</a>
    
    <li><a href="#method-i-at_end_of_quarter">#at_end_of_quarter</a>
    
    <li><a href="#method-i-at_end_of_week">#at_end_of_week</a>
    
    <li><a href="#method-i-at_end_of_year">#at_end_of_year</a>
    
    <li><a href="#method-i-at_midnight">#at_midnight</a>
    
    <li><a href="#method-i-beginning_of_day">#beginning_of_day</a>
    
    <li><a href="#method-i-beginning_of_hour">#beginning_of_hour</a>
    
    <li><a href="#method-i-beginning_of_month">#beginning_of_month</a>
    
    <li><a href="#method-i-beginning_of_quarter">#beginning_of_quarter</a>
    
    <li><a href="#method-i-beginning_of_week">#beginning_of_week</a>
    
    <li><a href="#method-i-beginning_of_year">#beginning_of_year</a>
    
    <li><a href="#method-i-change">#change</a>
    
    <li><a href="#method-i-compare_with_coercion">#compare_with_coercion</a>
    
    <li><a href="#method-i-compare_without_coercion">#compare_without_coercion</a>
    
    <li><a href="#method-i-days_to_week_start">#days_to_week_start</a>
    
    <li><a href="#method-i-end_of_day">#end_of_day</a>
    
    <li><a href="#method-i-end_of_hour">#end_of_hour</a>
    
    <li><a href="#method-i-end_of_month">#end_of_month</a>
    
    <li><a href="#method-i-end_of_quarter">#end_of_quarter</a>
    
    <li><a href="#method-i-end_of_week">#end_of_week</a>
    
    <li><a href="#method-i-end_of_year">#end_of_year</a>
    
    <li><a href="#method-i-eql-3F">#eql?</a>
    
    <li><a href="#method-i-eql_with_coercion">#eql_with_coercion</a>
    
    <li><a href="#method-i-eql_without_coercion">#eql_without_coercion</a>
    
    <li><a href="#method-i-formatted_offset">#formatted_offset</a>
    
    <li><a href="#method-i-future-3F">#future?</a>
    
    <li><a href="#method-i-in">#in</a>
    
    <li><a href="#method-i-in_time_zone">#in_time_zone</a>
    
    <li><a href="#method-i-midnight">#midnight</a>
    
    <li><a href="#method-i-minus_with_coercion">#minus_with_coercion</a>
    
    <li><a href="#method-i-minus_without_coercion">#minus_without_coercion</a>
    
    <li><a href="#method-i-minus_without_duration">#minus_without_duration</a>
    
    <li><a href="#method-i-monday">#monday</a>
    
    <li><a href="#method-i-months_ago">#months_ago</a>
    
    <li><a href="#method-i-months_since">#months_since</a>
    
    <li><a href="#method-i-next_month">#next_month</a>
    
    <li><a href="#method-i-next_week">#next_week</a>
    
    <li><a href="#method-i-next_year">#next_year</a>
    
    <li><a href="#method-i-past-3F">#past?</a>
    
    <li><a href="#method-i-prev_month">#prev_month</a>
    
    <li><a href="#method-i-prev_week">#prev_week</a>
    
    <li><a href="#method-i-prev_year">#prev_year</a>
    
    <li><a href="#method-i-seconds_since_midnight">#seconds_since_midnight</a>
    
    <li><a href="#method-i-since">#since</a>
    
    <li><a href="#method-i-sunday">#sunday</a>
    
    <li><a href="#method-i-to_date">#to_date</a>
    
    <li><a href="#method-i-to_datetime">#to_datetime</a>
    
    <li><a href="#method-i-to_default_s">#to_default_s</a>
    
    <li><a href="#method-i-to_formatted_s">#to_formatted_s</a>
    
    <li><a href="#method-i-to_s">#to_s</a>
    
    <li><a href="#method-i-to_time">#to_time</a>
    
    <li><a href="#method-i-today-3F">#today?</a>
    
    <li><a href="#method-i-tomorrow">#tomorrow</a>
    
    <li><a href="#method-i-weeks_ago">#weeks_ago</a>
    
    <li><a href="#method-i-years_ago">#years_ago</a>
    
    <li><a href="#method-i-years_since">#years_since</a>
    
    <li><a href="#method-i-yesterday">#yesterday</a>
    
  </ul>
</nav>

  </div>

  <div id="project-metadata">
    <nav id="fileindex-section" class="section project-section">
  <h3 class="section-header">Pages</h3>

  <ul>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/actionmailer-3_2_7/MIT-LICENSE.html">MIT-LICENSE</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/actionmailer-3_2_7/README_rdoc.html">README</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/actionpack-3_2_7/MIT-LICENSE.html">MIT-LICENSE</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/actionpack-3_2_7/README_rdoc.html">README</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/activemodel-3_2_7/MIT-LICENSE.html">MIT-LICENSE</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/activemodel-3_2_7/README_rdoc.html">README</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/activerecord-3_2_7/README_rdoc.html">README</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/activeresource-3_2_7/README_rdoc.html">README</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/activesupport-3_2_7/README_rdoc.html">README</a>
  
    <li class="file"><a href=".//usr/local/lib/ruby/gems/1_9_1/gems/railties-3_2_7/README_rdoc.html">README</a>
  
    <li class="file"><a href="./README_rdoc.html">README</a>
  
  </ul>
</nav>

    <nav id="classindex-section" class="section project-section">
  <h3 class="section-header">Class and Module Index</h3>

  <ul class="link-list">
  
    <li><a href="./ActiveRecord.html">ActiveRecord</a>
  
    <li><a href="./ActiveRecord/ActiveRecordError.html">ActiveRecord::ActiveRecordError</a>
  
    <li><a href="./ActiveRecord/AdapterNotFound.html">ActiveRecord::AdapterNotFound</a>
  
    <li><a href="./ActiveRecord/AdapterNotSpecified.html">ActiveRecord::AdapterNotSpecified</a>
  
    <li><a href="./ActiveRecord/Aggregations.html">ActiveRecord::Aggregations</a>
  
    <li><a href="./ActiveRecord/Aggregations/ClassMethods.html">ActiveRecord::Aggregations::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AssociationTypeMismatch.html">ActiveRecord::AssociationTypeMismatch</a>
  
    <li><a href="./ActiveRecord/Associations.html">ActiveRecord::Associations</a>
  
    <li><a href="./ActiveRecord/Associations/ClassMethods.html">ActiveRecord::Associations::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AttributeAssignment.html">ActiveRecord::AttributeAssignment</a>
  
    <li><a href="./ActiveRecord/AttributeAssignment/ClassMethods.html">ActiveRecord::AttributeAssignment::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AttributeAssignmentError.html">ActiveRecord::AttributeAssignmentError</a>
  
    <li><a href="./ActiveRecord/AttributeMethods.html">ActiveRecord::AttributeMethods</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/BeforeTypeCast.html">ActiveRecord::AttributeMethods::BeforeTypeCast</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/ClassMethods.html">ActiveRecord::AttributeMethods::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/DeprecatedUnderscoreRead.html">ActiveRecord::AttributeMethods::DeprecatedUnderscoreRead</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/DeprecatedUnderscoreRead/ClassMethods.html">ActiveRecord::AttributeMethods::DeprecatedUnderscoreRead::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Dirty.html">ActiveRecord::AttributeMethods::Dirty</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/PrimaryKey.html">ActiveRecord::AttributeMethods::PrimaryKey</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/PrimaryKey/ClassMethods.html">ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Query.html">ActiveRecord::AttributeMethods::Query</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Read.html">ActiveRecord::AttributeMethods::Read</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Read/ClassMethods.html">ActiveRecord::AttributeMethods::Read::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Serialization.html">ActiveRecord::AttributeMethods::Serialization</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Serialization/Attribute.html">ActiveRecord::AttributeMethods::Serialization::Attribute</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Serialization/ClassMethods.html">ActiveRecord::AttributeMethods::Serialization::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/TimeZoneConversion.html">ActiveRecord::AttributeMethods::TimeZoneConversion</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/TimeZoneConversion/ClassMethods.html">ActiveRecord::AttributeMethods::TimeZoneConversion::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Write.html">ActiveRecord::AttributeMethods::Write</a>
  
    <li><a href="./ActiveRecord/AttributeMethods/Write/ClassMethods.html">ActiveRecord::AttributeMethods::Write::ClassMethods</a>
  
    <li><a href="./ActiveRecord/AutosaveAssociation.html">ActiveRecord::AutosaveAssociation</a>
  
    <li><a href="./ActiveRecord/AutosaveAssociation/ClassMethods.html">ActiveRecord::AutosaveAssociation::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Base.html">ActiveRecord::Base</a>
  
    <li><a href="./ActiveRecord/Batches.html">ActiveRecord::Batches</a>
  
    <li><a href="./ActiveRecord/Calculations.html">ActiveRecord::Calculations</a>
  
    <li><a href="./ActiveRecord/Callbacks.html">ActiveRecord::Callbacks</a>
  
    <li><a href="./ActiveRecord/ConfigurationError.html">ActiveRecord::ConfigurationError</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/AbstractAdapter.html">ActiveRecord::ConnectionAdapters::AbstractAdapter</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/AbstractMysqlAdapter.html">ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/ConnectionHandler.html">ActiveRecord::ConnectionAdapters::ConnectionHandler</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/ConnectionManagement.html">ActiveRecord::ConnectionAdapters::ConnectionManagement</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/ConnectionPool.html">ActiveRecord::ConnectionAdapters::ConnectionPool</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/DatabaseLimits.html">ActiveRecord::ConnectionAdapters::DatabaseLimits</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/DatabaseStatements.html">ActiveRecord::ConnectionAdapters::DatabaseStatements</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/Mysql2Adapter.html">ActiveRecord::ConnectionAdapters::Mysql2Adapter</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/MysqlAdapter.html">ActiveRecord::ConnectionAdapters::MysqlAdapter</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/MysqlAdapter/StatementPool.html">ActiveRecord::ConnectionAdapters::MysqlAdapter::StatementPool</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html">ActiveRecord::ConnectionAdapters::PostgreSQLAdapter</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/StatementPool.html">ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/TableDefinition.html">ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/Utils.html">ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::Utils</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/PostgreSQLColumn.html">ActiveRecord::ConnectionAdapters::PostgreSQLColumn</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/QueryCache.html">ActiveRecord::ConnectionAdapters::QueryCache</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/Quoting.html">ActiveRecord::ConnectionAdapters::Quoting</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/SQLiteAdapter.html">ActiveRecord::ConnectionAdapters::SQLiteAdapter</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/SQLiteAdapter/ExplainPrettyPrinter.html">ActiveRecord::ConnectionAdapters::SQLiteAdapter::ExplainPrettyPrinter</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/SQLiteAdapter/StatementPool.html">ActiveRecord::ConnectionAdapters::SQLiteAdapter::StatementPool</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/SQLiteAdapter/Version.html">ActiveRecord::ConnectionAdapters::SQLiteAdapter::Version</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/SchemaCache.html">ActiveRecord::ConnectionAdapters::SchemaCache</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/SchemaStatements.html">ActiveRecord::ConnectionAdapters::SchemaStatements</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/StatementPool.html">ActiveRecord::ConnectionAdapters::StatementPool</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/Table.html">ActiveRecord::ConnectionAdapters::Table</a>
  
    <li><a href="./ActiveRecord/ConnectionAdapters/TableDefinition.html">ActiveRecord::ConnectionAdapters::TableDefinition</a>
  
    <li><a href="./ActiveRecord/ConnectionNotEstablished.html">ActiveRecord::ConnectionNotEstablished</a>
  
    <li><a href="./ActiveRecord/ConnectionTimeoutError.html">ActiveRecord::ConnectionTimeoutError</a>
  
    <li><a href="./ActiveRecord/CounterCache.html">ActiveRecord::CounterCache</a>
  
    <li><a href="./ActiveRecord/DangerousAttributeError.html">ActiveRecord::DangerousAttributeError</a>
  
    <li><a href="./ActiveRecord/Delegation.html">ActiveRecord::Delegation</a>
  
    <li><a href="./ActiveRecord/DynamicFinderMatch.html">ActiveRecord::DynamicFinderMatch</a>
  
    <li><a href="./ActiveRecord/DynamicMatchers.html">ActiveRecord::DynamicMatchers</a>
  
    <li><a href="./ActiveRecord/DynamicScopeMatch.html">ActiveRecord::DynamicScopeMatch</a>
  
    <li><a href="./ActiveRecord/Explain.html">ActiveRecord::Explain</a>
  
    <li><a href="./ActiveRecord/FinderMethods.html">ActiveRecord::FinderMethods</a>
  
    <li><a href="./ActiveRecord/Fixtures.html">ActiveRecord::Fixtures</a>
  
    <li><a href="./ActiveRecord/Fixtures/File.html">ActiveRecord::Fixtures::File</a>
  
    <li><a href="./ActiveRecord/IdentityMap.html">ActiveRecord::IdentityMap</a>
  
    <li><a href="./ActiveRecord/IdentityMap/Middleware.html">ActiveRecord::IdentityMap::Middleware</a>
  
    <li><a href="./ActiveRecord/Inheritance.html">ActiveRecord::Inheritance</a>
  
    <li><a href="./ActiveRecord/Inheritance/ClassMethods.html">ActiveRecord::Inheritance::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Integration.html">ActiveRecord::Integration</a>
  
    <li><a href="./ActiveRecord/InvalidForeignKey.html">ActiveRecord::InvalidForeignKey</a>
  
    <li><a href="./ActiveRecord/IrreversibleMigration.html">ActiveRecord::IrreversibleMigration</a>
  
    <li><a href="./ActiveRecord/Locking.html">ActiveRecord::Locking</a>
  
    <li><a href="./ActiveRecord/Locking/Optimistic.html">ActiveRecord::Locking::Optimistic</a>
  
    <li><a href="./ActiveRecord/Locking/Optimistic/ClassMethods.html">ActiveRecord::Locking::Optimistic::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Locking/Pessimistic.html">ActiveRecord::Locking::Pessimistic</a>
  
    <li><a href="./ActiveRecord/LogSubscriber.html">ActiveRecord::LogSubscriber</a>
  
    <li><a href="./ActiveRecord/Migration.html">ActiveRecord::Migration</a>
  
    <li><a href="./ActiveRecord/Migration/CommandRecorder.html">ActiveRecord::Migration::CommandRecorder</a>
  
    <li><a href="./ActiveRecord/MigrationProxy.html">ActiveRecord::MigrationProxy</a>
  
    <li><a href="./ActiveRecord/ModelSchema.html">ActiveRecord::ModelSchema</a>
  
    <li><a href="./ActiveRecord/ModelSchema/ClassMethods.html">ActiveRecord::ModelSchema::ClassMethods</a>
  
    <li><a href="./ActiveRecord/MultiparameterAssignmentErrors.html">ActiveRecord::MultiparameterAssignmentErrors</a>
  
    <li><a href="./ActiveRecord/NestedAttributes.html">ActiveRecord::NestedAttributes</a>
  
    <li><a href="./ActiveRecord/NestedAttributes/ClassMethods.html">ActiveRecord::NestedAttributes::ClassMethods</a>
  
    <li><a href="./ActiveRecord/NestedAttributes/TooManyRecords.html">ActiveRecord::NestedAttributes::TooManyRecords</a>
  
    <li><a href="./ActiveRecord/Observer.html">ActiveRecord::Observer</a>
  
    <li><a href="./ActiveRecord/Persistence.html">ActiveRecord::Persistence</a>
  
    <li><a href="./ActiveRecord/Persistence/ClassMethods.html">ActiveRecord::Persistence::ClassMethods</a>
  
    <li><a href="./ActiveRecord/PreparedStatementInvalid.html">ActiveRecord::PreparedStatementInvalid</a>
  
    <li><a href="./ActiveRecord/QueryCache.html">ActiveRecord::QueryCache</a>
  
    <li><a href="./ActiveRecord/QueryCache/ClassMethods.html">ActiveRecord::QueryCache::ClassMethods</a>
  
    <li><a href="./ActiveRecord/QueryMethods.html">ActiveRecord::QueryMethods</a>
  
    <li><a href="./ActiveRecord/Querying.html">ActiveRecord::Querying</a>
  
    <li><a href="./ActiveRecord/Railtie.html">ActiveRecord::Railtie</a>
  
    <li><a href="./ActiveRecord/Railties.html">ActiveRecord::Railties</a>
  
    <li><a href="./ActiveRecord/Railties/ControllerRuntime.html">ActiveRecord::Railties::ControllerRuntime</a>
  
    <li><a href="./ActiveRecord/Railties/ControllerRuntime/ClassMethods.html">ActiveRecord::Railties::ControllerRuntime::ClassMethods</a>
  
    <li><a href="./ActiveRecord/ReadOnlyRecord.html">ActiveRecord::ReadOnlyRecord</a>
  
    <li><a href="./ActiveRecord/ReadonlyAttributes.html">ActiveRecord::ReadonlyAttributes</a>
  
    <li><a href="./ActiveRecord/ReadonlyAttributes/ClassMethods.html">ActiveRecord::ReadonlyAttributes::ClassMethods</a>
  
    <li><a href="./ActiveRecord/RecordInvalid.html">ActiveRecord::RecordInvalid</a>
  
    <li><a href="./ActiveRecord/RecordNotFound.html">ActiveRecord::RecordNotFound</a>
  
    <li><a href="./ActiveRecord/RecordNotSaved.html">ActiveRecord::RecordNotSaved</a>
  
    <li><a href="./ActiveRecord/RecordNotUnique.html">ActiveRecord::RecordNotUnique</a>
  
    <li><a href="./ActiveRecord/Reflection.html">ActiveRecord::Reflection</a>
  
    <li><a href="./ActiveRecord/Reflection/ClassMethods.html">ActiveRecord::Reflection::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Reflection/MacroReflection.html">ActiveRecord::Reflection::MacroReflection</a>
  
    <li><a href="./ActiveRecord/Relation.html">ActiveRecord::Relation</a>
  
    <li><a href="./ActiveRecord/Result.html">ActiveRecord::Result</a>
  
    <li><a href="./ActiveRecord/Rollback.html">ActiveRecord::Rollback</a>
  
    <li><a href="./ActiveRecord/Sanitization.html">ActiveRecord::Sanitization</a>
  
    <li><a href="./ActiveRecord/Sanitization/ClassMethods.html">ActiveRecord::Sanitization::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Schema.html">ActiveRecord::Schema</a>
  
    <li><a href="./ActiveRecord/Scoping.html">ActiveRecord::Scoping</a>
  
    <li><a href="./ActiveRecord/Scoping/ClassMethods.html">ActiveRecord::Scoping::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Scoping/Default.html">ActiveRecord::Scoping::Default</a>
  
    <li><a href="./ActiveRecord/Scoping/Default/ClassMethods.html">ActiveRecord::Scoping::Default::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Scoping/Named.html">ActiveRecord::Scoping::Named</a>
  
    <li><a href="./ActiveRecord/Scoping/Named/ClassMethods.html">ActiveRecord::Scoping::Named::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Serialization.html">ActiveRecord::Serialization</a>
  
    <li><a href="./ActiveRecord/SerializationTypeMismatch.html">ActiveRecord::SerializationTypeMismatch</a>
  
    <li><a href="./ActiveRecord/SessionStore.html">ActiveRecord::SessionStore</a>
  
    <li><a href="./ActiveRecord/SessionStore/Session.html">ActiveRecord::SessionStore::Session</a>
  
    <li><a href="./ActiveRecord/SessionStore/SqlBypass.html">ActiveRecord::SessionStore::SqlBypass</a>
  
    <li><a href="./ActiveRecord/SpawnMethods.html">ActiveRecord::SpawnMethods</a>
  
    <li><a href="./ActiveRecord/StaleObjectError.html">ActiveRecord::StaleObjectError</a>
  
    <li><a href="./ActiveRecord/StatementInvalid.html">ActiveRecord::StatementInvalid</a>
  
    <li><a href="./ActiveRecord/Store.html">ActiveRecord::Store</a>
  
    <li><a href="./ActiveRecord/Store/ClassMethods.html">ActiveRecord::Store::ClassMethods</a>
  
    <li><a href="./ActiveRecord/TestFixtures.html">ActiveRecord::TestFixtures</a>
  
    <li><a href="./ActiveRecord/TestFixtures/ClassMethods.html">ActiveRecord::TestFixtures::ClassMethods</a>
  
    <li><a href="./ActiveRecord/ThrowResult.html">ActiveRecord::ThrowResult</a>
  
    <li><a href="./ActiveRecord/Timestamp.html">ActiveRecord::Timestamp</a>
  
    <li><a href="./ActiveRecord/Transactions.html">ActiveRecord::Transactions</a>
  
    <li><a href="./ActiveRecord/Transactions/ClassMethods.html">ActiveRecord::Transactions::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Translation.html">ActiveRecord::Translation</a>
  
    <li><a href="./ActiveRecord/UnknownAttributeError.html">ActiveRecord::UnknownAttributeError</a>
  
    <li><a href="./ActiveRecord/UnknownPrimaryKey.html">ActiveRecord::UnknownPrimaryKey</a>
  
    <li><a href="./ActiveRecord/Validations.html">ActiveRecord::Validations</a>
  
    <li><a href="./ActiveRecord/Validations/AssociatedValidator.html">ActiveRecord::Validations::AssociatedValidator</a>
  
    <li><a href="./ActiveRecord/Validations/ClassMethods.html">ActiveRecord::Validations::ClassMethods</a>
  
    <li><a href="./ActiveRecord/Validations/UniquenessValidator.html">ActiveRecord::Validations::UniquenessValidator</a>
  
    <li><a href="./ActiveRecord/WrappedDatabaseException.html">ActiveRecord::WrappedDatabaseException</a>
  
    <li><a href="./ActiveSupport.html">ActiveSupport</a>
  
    <li><a href="./ActiveSupport/Autoload.html">ActiveSupport::Autoload</a>
  
    <li><a href="./ActiveSupport/BacktraceCleaner.html">ActiveSupport::BacktraceCleaner</a>
  
    <li><a href="./ActiveSupport/Base64.html">ActiveSupport::Base64</a>
  
    <li><a href="./ActiveSupport/BasicObject.html">ActiveSupport::BasicObject</a>
  
    <li><a href="./ActiveSupport/Benchmarkable.html">ActiveSupport::Benchmarkable</a>
  
    <li><a href="./ActiveSupport/BufferedLogger.html">ActiveSupport::BufferedLogger</a>
  
    <li><a href="./ActiveSupport/BufferedLogger/Severity.html">ActiveSupport::BufferedLogger::Severity</a>
  
    <li><a href="./ActiveSupport/Cache.html">ActiveSupport::Cache</a>
  
    <li><a href="./ActiveSupport/Cache/Entry.html">ActiveSupport::Cache::Entry</a>
  
    <li><a href="./ActiveSupport/Cache/FileStore.html">ActiveSupport::Cache::FileStore</a>
  
    <li><a href="./ActiveSupport/Cache/MemCacheStore.html">ActiveSupport::Cache::MemCacheStore</a>
  
    <li><a href="./ActiveSupport/Cache/MemoryStore.html">ActiveSupport::Cache::MemoryStore</a>
  
    <li><a href="./ActiveSupport/Cache/NullStore.html">ActiveSupport::Cache::NullStore</a>
  
    <li><a href="./ActiveSupport/Cache/Store.html">ActiveSupport::Cache::Store</a>
  
    <li><a href="./ActiveSupport/Cache/Strategy.html">ActiveSupport::Cache::Strategy</a>
  
    <li><a href="./ActiveSupport/Cache/Strategy/LocalCache.html">ActiveSupport::Cache::Strategy::LocalCache</a>
  
    <li><a href="./ActiveSupport/Cache/Strategy/LocalCache/LocalStore.html">ActiveSupport::Cache::Strategy::LocalCache::LocalStore</a>
  
    <li><a href="./ActiveSupport/Callbacks.html">ActiveSupport::Callbacks</a>
  
    <li><a href="./ActiveSupport/Callbacks/ClassMethods.html">ActiveSupport::Callbacks::ClassMethods</a>
  
    <li><a href="./ActiveSupport/Concern.html">ActiveSupport::Concern</a>
  
    <li><a href="./ActiveSupport/Configurable.html">ActiveSupport::Configurable</a>
  
    <li><a href="./ActiveSupport/Configurable/ClassMethods.html">ActiveSupport::Configurable::ClassMethods</a>
  
    <li><a href="./ActiveSupport/Configurable/Configuration.html">ActiveSupport::Configurable::Configuration</a>
  
    <li><a href="./ActiveSupport/Dependencies.html">ActiveSupport::Dependencies</a>
  
    <li><a href="./ActiveSupport/Dependencies/ClassCache.html">ActiveSupport::Dependencies::ClassCache</a>
  
    <li><a href="./ActiveSupport/Dependencies/WatchStack.html">ActiveSupport::Dependencies::WatchStack</a>
  
    <li><a href="./ActiveSupport/Deprecation.html">ActiveSupport::Deprecation</a>
  
    <li><a href="./ActiveSupport/DescendantsTracker.html">ActiveSupport::DescendantsTracker</a>
  
    <li><a href="./ActiveSupport/Duration.html">ActiveSupport::Duration</a>
  
    <li><a href="./ActiveSupport/FileUpdateChecker.html">ActiveSupport::FileUpdateChecker</a>
  
    <li><a href="./ActiveSupport/FileWatcher.html">ActiveSupport::FileWatcher</a>
  
    <li><a href="./ActiveSupport/FileWatcher/Backend.html">ActiveSupport::FileWatcher::Backend</a>
  
    <li><a href="./ActiveSupport/Gzip.html">ActiveSupport::Gzip</a>
  
    <li><a href="./ActiveSupport/Gzip/Stream.html">ActiveSupport::Gzip::Stream</a>
  
    <li><a href="./ActiveSupport/HashWithIndifferentAccess.html">ActiveSupport::HashWithIndifferentAccess</a>
  
    <li><a href="./ActiveSupport/HashWithIndifferentAccess.html">ActiveSupport::HashWithIndifferentAccess</a>
  
    <li><a href="./ActiveSupport/Inflector.html">ActiveSupport::Inflector</a>
  
    <li><a href="./ActiveSupport/Inflector/Inflections.html">ActiveSupport::Inflector::Inflections</a>
  
    <li><a href="./ActiveSupport/InheritableOptions.html">ActiveSupport::InheritableOptions</a>
  
    <li><a href="./ActiveSupport/JSON.html">ActiveSupport::JSON</a>
  
    <li><a href="./ActiveSupport/JSON/Encoding.html">ActiveSupport::JSON::Encoding</a>
  
    <li><a href="./ActiveSupport/JSON/Encoding/CircularReferenceError.html">ActiveSupport::JSON::Encoding::CircularReferenceError</a>
  
    <li><a href="./ActiveSupport/JSON/Encoding/Encoder.html">ActiveSupport::JSON::Encoding::Encoder</a>
  
    <li><a href="./ActiveSupport/JSON/Variable.html">ActiveSupport::JSON::Variable</a>
  
    <li><a href="./ActiveSupport/LogSubscriber.html">ActiveSupport::LogSubscriber</a>
  
    <li><a href="./ActiveSupport/LogSubscriber/TestHelper.html">ActiveSupport::LogSubscriber::TestHelper</a>
  
    <li><a href="./ActiveSupport/LogSubscriber/TestHelper/MockLogger.html">ActiveSupport::LogSubscriber::TestHelper::MockLogger</a>
  
    <li><a href="./ActiveSupport/Memoizable.html">ActiveSupport::Memoizable</a>
  
    <li><a href="./ActiveSupport/Memoizable/InstanceMethods.html">ActiveSupport::Memoizable::InstanceMethods</a>
  
    <li><a href="./ActiveSupport/MessageEncryptor.html">ActiveSupport::MessageEncryptor</a>
  
    <li><a href="./ActiveSupport/MessageEncryptor/InvalidMessage.html">ActiveSupport::MessageEncryptor::InvalidMessage</a>
  
    <li><a href="./ActiveSupport/MessageVerifier.html">ActiveSupport::MessageVerifier</a>
  
    <li><a href="./ActiveSupport/MessageVerifier/InvalidSignature.html">ActiveSupport::MessageVerifier::InvalidSignature</a>
  
    <li><a href="./ActiveSupport/Multibyte.html">ActiveSupport::Multibyte</a>
  
    <li><a href="./ActiveSupport/Multibyte/Chars.html">ActiveSupport::Multibyte::Chars</a>
  
    <li><a href="./ActiveSupport/Multibyte/EncodingError.html">ActiveSupport::Multibyte::EncodingError</a>
  
    <li><a href="./ActiveSupport/Multibyte/Unicode.html">ActiveSupport::Multibyte::Unicode</a>
  
    <li><a href="./ActiveSupport/Multibyte/Unicode/Codepoint.html">ActiveSupport::Multibyte::Unicode::Codepoint</a>
  
    <li><a href="./ActiveSupport/Multibyte/Unicode/UnicodeDatabase.html">ActiveSupport::Multibyte::Unicode::UnicodeDatabase</a>
  
    <li><a href="./ActiveSupport/Notifications.html">ActiveSupport::Notifications</a>
  
    <li><a href="./ActiveSupport/Notifications/Event.html">ActiveSupport::Notifications::Event</a>
  
    <li><a href="./ActiveSupport/Notifications/Fanout.html">ActiveSupport::Notifications::Fanout</a>
  
    <li><a href="./ActiveSupport/Notifications/Instrumenter.html">ActiveSupport::Notifications::Instrumenter</a>
  
    <li><a href="./ActiveSupport/OrderedHash.html">ActiveSupport::OrderedHash</a>
  
    <li><a href="./ActiveSupport/OrderedOptions.html">ActiveSupport::OrderedOptions</a>
  
    <li><a href="./ActiveSupport/Railtie.html">ActiveSupport::Railtie</a>
  
    <li><a href="./ActiveSupport/Rescuable.html">ActiveSupport::Rescuable</a>
  
    <li><a href="./ActiveSupport/Rescuable/ClassMethods.html">ActiveSupport::Rescuable::ClassMethods</a>
  
    <li><a href="./ActiveSupport/SafeBuffer.html">ActiveSupport::SafeBuffer</a>
  
    <li><a href="./ActiveSupport/SafeBuffer/SafeConcatError.html">ActiveSupport::SafeBuffer::SafeConcatError</a>
  
    <li><a href="./ActiveSupport/StringInquirer.html">ActiveSupport::StringInquirer</a>
  
    <li><a href="./ActiveSupport/TaggedLogging.html">ActiveSupport::TaggedLogging</a>
  
    <li><a href="./ActiveSupport/TestCase.html">ActiveSupport::TestCase</a>
  
    <li><a href="./ActiveSupport/Testing.html">ActiveSupport::Testing</a>
  
    <li><a href="./ActiveSupport/Testing/Assertions.html">ActiveSupport::Testing::Assertions</a>
  
    <li><a href="./ActiveSupport/Testing/Declarative.html">ActiveSupport::Testing::Declarative</a>
  
    <li><a href="./ActiveSupport/Testing/Isolation.html">ActiveSupport::Testing::Isolation</a>
  
    <li><a href="./ActiveSupport/Testing/Isolation/Forking.html">ActiveSupport::Testing::Isolation::Forking</a>
  
    <li><a href="./ActiveSupport/Testing/Isolation/MiniTest.html">ActiveSupport::Testing::Isolation::MiniTest</a>
  
    <li><a href="./ActiveSupport/Testing/Isolation/Subprocess.html">ActiveSupport::Testing::Isolation::Subprocess</a>
  
    <li><a href="./ActiveSupport/Testing/Isolation/TestUnit.html">ActiveSupport::Testing::Isolation::TestUnit</a>
  
    <li><a href="./ActiveSupport/Testing/Pending.html">ActiveSupport::Testing::Pending</a>
  
    <li><a href="./ActiveSupport/Testing/Performance.html">ActiveSupport::Testing::Performance</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Benchmarker.html">ActiveSupport::Testing::Performance::Benchmarker</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/ForClassicTestUnit.html">ActiveSupport::Testing::Performance::ForClassicTestUnit</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/ForMiniTest.html">ActiveSupport::Testing::Performance::ForMiniTest</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics.html">ActiveSupport::Testing::Performance::Metrics</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/Amount.html">ActiveSupport::Testing::Performance::Metrics::Amount</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/Base.html">ActiveSupport::Testing::Performance::Metrics::Base</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/CpuTime.html">ActiveSupport::Testing::Performance::Metrics::CpuTime</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/DigitalInformationUnit.html">ActiveSupport::Testing::Performance::Metrics::DigitalInformationUnit</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/GcRuns.html">ActiveSupport::Testing::Performance::Metrics::GcRuns</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/GcTime.html">ActiveSupport::Testing::Performance::Metrics::GcTime</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/Memory.html">ActiveSupport::Testing::Performance::Metrics::Memory</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/Objects.html">ActiveSupport::Testing::Performance::Metrics::Objects</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/ProcessTime.html">ActiveSupport::Testing::Performance::Metrics::ProcessTime</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/Time.html">ActiveSupport::Testing::Performance::Metrics::Time</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/UserTime.html">ActiveSupport::Testing::Performance::Metrics::UserTime</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Metrics/WallTime.html">ActiveSupport::Testing::Performance::Metrics::WallTime</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Performer.html">ActiveSupport::Testing::Performance::Performer</a>
  
    <li><a href="./ActiveSupport/Testing/Performance/Profiler.html">ActiveSupport::Testing::Performance::Profiler</a>
  
    <li><a href="./ActiveSupport/Testing/ProxyTestResult.html">ActiveSupport::Testing::ProxyTestResult</a>
  
    <li><a href="./ActiveSupport/Testing/RemoteError.html">ActiveSupport::Testing::RemoteError</a>
  
    <li><a href="./ActiveSupport/Testing/SetupAndTeardown.html">ActiveSupport::Testing::SetupAndTeardown</a>
  
    <li><a href="./ActiveSupport/Testing/SetupAndTeardown/ClassMethods.html">ActiveSupport::Testing::SetupAndTeardown::ClassMethods</a>
  
    <li><a href="./ActiveSupport/Testing/SetupAndTeardown/ForClassicTestUnit.html">ActiveSupport::Testing::SetupAndTeardown::ForClassicTestUnit</a>
  
    <li><a href="./ActiveSupport/Testing/SetupAndTeardown/ForMiniTest.html">ActiveSupport::Testing::SetupAndTeardown::ForMiniTest</a>
  
    <li><a href="./ActiveSupport/TimeWithZone.html">ActiveSupport::TimeWithZone</a>
  
    <li><a href="./ActiveSupport/TimeZone.html">ActiveSupport::TimeZone</a>
  
    <li><a href="./ActiveSupport/XmlMini.html">ActiveSupport::XmlMini</a>
  
    <li><a href="./ActiveSupport/XmlMini_LibXMLSAX.html">ActiveSupport::XmlMini_LibXMLSAX</a>
  
    <li><a href="./ActiveSupport/XmlMini_LibXMLSAX/HashBuilder.html">ActiveSupport::XmlMini_LibXMLSAX::HashBuilder</a>
  
    <li><a href="./ActiveSupport/XmlMini_NokogiriSAX.html">ActiveSupport::XmlMini_NokogiriSAX</a>
  
    <li><a href="./ActiveSupport/XmlMini_NokogiriSAX/HashBuilder.html">ActiveSupport::XmlMini_NokogiriSAX::HashBuilder</a>
  
    <li><a href="./ActionController.html">ActionController</a>
  
    <li><a href="./ActionController/Base.html">ActionController::Base</a>
  
    <li><a href="./ActionController/Caching.html">ActionController::Caching</a>
  
    <li><a href="./ActionController/Caching/Actions.html">ActionController::Caching::Actions</a>
  
    <li><a href="./ActionController/Caching/Actions/ActionCachePath.html">ActionController::Caching::Actions::ActionCachePath</a>
  
    <li><a href="./ActionController/Caching/Actions/ClassMethods.html">ActionController::Caching::Actions::ClassMethods</a>
  
    <li><a href="./ActionController/Caching/ConfigMethods.html">ActionController::Caching::ConfigMethods</a>
  
    <li><a href="./ActionController/Caching/Fragments.html">ActionController::Caching::Fragments</a>
  
    <li><a href="./ActionController/Caching/Pages.html">ActionController::Caching::Pages</a>
  
    <li><a href="./ActionController/Caching/Pages/ClassMethods.html">ActionController::Caching::Pages::ClassMethods</a>
  
    <li><a href="./ActionController/Caching/Sweeping.html">ActionController::Caching::Sweeping</a>
  
    <li><a href="./ActionController/Compatibility.html">ActionController::Compatibility</a>
  
    <li><a href="./ActionController/ConditionalGet.html">ActionController::ConditionalGet</a>
  
    <li><a href="./ActionController/Cookies.html">ActionController::Cookies</a>
  
    <li><a href="./ActionController/DataStreaming.html">ActionController::DataStreaming</a>
  
    <li><a href="./ActionController/Flash.html">ActionController::Flash</a>
  
    <li><a href="./ActionController/ForceSSL.html">ActionController::ForceSSL</a>
  
    <li><a href="./ActionController/ForceSSL/ClassMethods.html">ActionController::ForceSSL::ClassMethods</a>
  
    <li><a href="./ActionController/Head.html">ActionController::Head</a>
  
    <li><a href="./ActionController/Helpers.html">ActionController::Helpers</a>
  
    <li><a href="./ActionController/Helpers/ClassMethods.html">ActionController::Helpers::ClassMethods</a>
  
    <li><a href="./ActionController/HideActions.html">ActionController::HideActions</a>
  
    <li><a href="./ActionController/HideActions/ClassMethods.html">ActionController::HideActions::ClassMethods</a>
  
    <li><a href="./ActionController/HttpAuthentication.html">ActionController::HttpAuthentication</a>
  
    <li><a href="./ActionController/HttpAuthentication/Basic.html">ActionController::HttpAuthentication::Basic</a>
  
    <li><a href="./ActionController/HttpAuthentication/Basic/ControllerMethods.html">ActionController::HttpAuthentication::Basic::ControllerMethods</a>
  
    <li><a href="./ActionController/HttpAuthentication/Basic/ControllerMethods/ClassMethods.html">ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods</a>
  
    <li><a href="./ActionController/HttpAuthentication/Digest.html">ActionController::HttpAuthentication::Digest</a>
  
    <li><a href="./ActionController/HttpAuthentication/Digest/ControllerMethods.html">ActionController::HttpAuthentication::Digest::ControllerMethods</a>
  
    <li><a href="./ActionController/HttpAuthentication/Token.html">ActionController::HttpAuthentication::Token</a>
  
    <li><a href="./ActionController/HttpAuthentication/Token/ControllerMethods.html">ActionController::HttpAuthentication::Token::ControllerMethods</a>
  
    <li><a href="./ActionController/ImplicitRender.html">ActionController::ImplicitRender</a>
  
    <li><a href="./ActionController/Instrumentation.html">ActionController::Instrumentation</a>
  
    <li><a href="./ActionController/Instrumentation/ClassMethods.html">ActionController::Instrumentation::ClassMethods</a>
  
    <li><a href="./ActionController/LogSubscriber.html">ActionController::LogSubscriber</a>
  
    <li><a href="./ActionController/Metal.html">ActionController::Metal</a>
  
    <li><a href="./ActionController/Middleware.html">ActionController::Middleware</a>
  
    <li><a href="./ActionController/Middleware/ActionMiddleware.html">ActionController::Middleware::ActionMiddleware</a>
  
    <li><a href="./ActionController/MimeResponds.html">ActionController::MimeResponds</a>
  
    <li><a href="./ActionController/MimeResponds/ClassMethods.html">ActionController::MimeResponds::ClassMethods</a>
  
    <li><a href="./ActionController/ParamsWrapper.html">ActionController::ParamsWrapper</a>
  
    <li><a href="./ActionController/ParamsWrapper/ClassMethods.html">ActionController::ParamsWrapper::ClassMethods</a>
  
    <li><a href="./ActionController/RackDelegation.html">ActionController::RackDelegation</a>
  
    <li><a href="./ActionController/Railtie.html">ActionController::Railtie</a>
  
    <li><a href="./ActionController/Railties.html">ActionController::Railties</a>
  
    <li><a href="./ActionController/Railties/Paths.html">ActionController::Railties::Paths</a>
  
    <li><a href="./ActionController/RecordIdentifier.html">ActionController::RecordIdentifier</a>
  
    <li><a href="./ActionController/Redirecting.html">ActionController::Redirecting</a>
  
    <li><a href="./ActionController/Renderers.html">ActionController::Renderers</a>
  
    <li><a href="./ActionController/Renderers/All.html">ActionController::Renderers::All</a>
  
    <li><a href="./ActionController/Renderers/ClassMethods.html">ActionController::Renderers::ClassMethods</a>
  
    <li><a href="./ActionController/Rendering.html">ActionController::Rendering</a>
  
    <li><a href="./ActionController/RequestForgeryProtection.html">ActionController::RequestForgeryProtection</a>
  
    <li><a href="./ActionController/RequestForgeryProtection/ClassMethods.html">ActionController::RequestForgeryProtection::ClassMethods</a>
  
    <li><a href="./ActionController/Rescue.html">ActionController::Rescue</a>
  
    <li><a href="./ActionController/Responder.html">ActionController::Responder</a>
  
    <li><a href="./ActionController/SessionManagement.html">ActionController::SessionManagement</a>
  
    <li><a href="./ActionController/SessionManagement/ClassMethods.html">ActionController::SessionManagement::ClassMethods</a>
  
    <li><a href="./ActionController/Streaming.html">ActionController::Streaming</a>
  
    <li><a href="./ActionController/TemplateAssertions.html">ActionController::TemplateAssertions</a>
  
    <li><a href="./ActionController/TestCase.html">ActionController::TestCase</a>
  
    <li><a href="./ActionController/TestCase/Behavior.html">ActionController::TestCase::Behavior</a>
  
    <li><a href="./ActionController/TestCase/Behavior/ClassMethods.html">ActionController::TestCase::Behavior::ClassMethods</a>
  
    <li><a href="./ActionController/TestCase/RaiseActionExceptions.html">ActionController::TestCase::RaiseActionExceptions</a>
  
    <li><a href="./ActionController/TestResponse.html">ActionController::TestResponse</a>
  
    <li><a href="./ActionController/Testing.html">ActionController::Testing</a>
  
    <li><a href="./ActionController/Testing/ClassMethods.html">ActionController::Testing::ClassMethods</a>
  
    <li><a href="./ActionController/UrlFor.html">ActionController::UrlFor</a>
  
    <li><a href="./ActionView.html">ActionView</a>
  
    <li><a href="./ActionView/ActionView.html">ActionView::ActionView</a>
  
    <li><a href="./ActionView/ActionView/ActionView.html">ActionView::ActionView::ActionView</a>
  
    <li><a href="./ActionView/ActionView/ActionView/Base.html">ActionView::ActionView::ActionView::Base</a>
  
    <li><a href="./ActionView/Base.html">ActionView::Base</a>
  
    <li><a href="./ActionView/Context.html">ActionView::Context</a>
  
    <li><a href="./ActionView/FileSystemResolver.html">ActionView::FileSystemResolver</a>
  
    <li><a href="./ActionView/FixtureResolver.html">ActionView::FixtureResolver</a>
  
    <li><a href="./ActionView/Helpers.html">ActionView::Helpers</a>
  
    <li><a href="./ActionView/Helpers/ActiveModelHelper.html">ActionView::Helpers::ActiveModelHelper</a>
  
    <li><a href="./ActionView/Helpers/ActiveModelInstanceTag.html">ActionView::Helpers::ActiveModelInstanceTag</a>
  
    <li><a href="./ActionView/Helpers/AssetTagHelper.html">ActionView::Helpers::AssetTagHelper</a>
  
    <li><a href="./ActionView/Helpers/AssetTagHelper/AssetIncludeTag.html">ActionView::Helpers::AssetTagHelper::AssetIncludeTag</a>
  
    <li><a href="./ActionView/Helpers/AssetTagHelper/JavascriptIncludeTag.html">ActionView::Helpers::AssetTagHelper::JavascriptIncludeTag</a>
  
    <li><a href="./ActionView/Helpers/AssetTagHelper/JavascriptTagHelpers.html">ActionView::Helpers::AssetTagHelper::JavascriptTagHelpers</a>
  
    <li><a href="./ActionView/Helpers/AssetTagHelper/JavascriptTagHelpers/ClassMethods.html">ActionView::Helpers::AssetTagHelper::JavascriptTagHelpers::ClassMethods</a>
  
    <li><a href="./ActionView/Helpers/AssetTagHelper/StylesheetIncludeTag.html">ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag</a>
  
    <li><a href="./ActionView/Helpers/AssetTagHelper/StylesheetTagHelpers.html">ActionView::Helpers::AssetTagHelper::StylesheetTagHelpers</a>
  
    <li><a href="./ActionView/Helpers/AssetTagHelper/StylesheetTagHelpers/ClassMethods.html">ActionView::Helpers::AssetTagHelper::StylesheetTagHelpers::ClassMethods</a>
  
    <li><a href="./ActionView/Helpers/AtomFeedHelper.html">ActionView::Helpers::AtomFeedHelper</a>
  
    <li><a href="./ActionView/Helpers/AtomFeedHelper/AtomBuilder.html">ActionView::Helpers::AtomFeedHelper::AtomBuilder</a>
  
    <li><a href="./ActionView/Helpers/AtomFeedHelper/AtomFeedBuilder.html">ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder</a>
  
    <li><a href="./ActionView/Helpers/CacheHelper.html">ActionView::Helpers::CacheHelper</a>
  
    <li><a href="./ActionView/Helpers/CaptureHelper.html">ActionView::Helpers::CaptureHelper</a>
  
    <li><a href="./ActionView/Helpers/CsrfHelper.html">ActionView::Helpers::CsrfHelper</a>
  
    <li><a href="./ActionView/Helpers/DateHelper.html">ActionView::Helpers::DateHelper</a>
  
    <li><a href="./ActionView/Helpers/DateHelperInstanceTag.html">ActionView::Helpers::DateHelperInstanceTag</a>
  
    <li><a href="./ActionView/Helpers/DebugHelper.html">ActionView::Helpers::DebugHelper</a>
  
    <li><a href="./ActionView/Helpers/FormBuilder.html">ActionView::Helpers::FormBuilder</a>
  
    <li><a href="./ActionView/Helpers/FormHelper.html">ActionView::Helpers::FormHelper</a>
  
    <li><a href="./ActionView/Helpers/FormOptionsHelper.html">ActionView::Helpers::FormOptionsHelper</a>
  
    <li><a href="./ActionView/Helpers/FormTagHelper.html">ActionView::Helpers::FormTagHelper</a>
  
    <li><a href="./ActionView/Helpers/InstanceTag.html">ActionView::Helpers::InstanceTag</a>
  
    <li><a href="./ActionView/Helpers/JavaScriptHelper.html">ActionView::Helpers::JavaScriptHelper</a>
  
    <li><a href="./ActionView/Helpers/NumberHelper.html">ActionView::Helpers::NumberHelper</a>
  
    <li><a href="./ActionView/Helpers/NumberHelper/InvalidNumberError.html">ActionView::Helpers::NumberHelper::InvalidNumberError</a>
  
    <li><a href="./ActionView/Helpers/OutputSafetyHelper.html">ActionView::Helpers::OutputSafetyHelper</a>
  
    <li><a href="./ActionView/Helpers/RecordTagHelper.html">ActionView::Helpers::RecordTagHelper</a>
  
    <li><a href="./ActionView/Helpers/RenderingHelper.html">ActionView::Helpers::RenderingHelper</a>
  
    <li><a href="./ActionView/Helpers/SanitizeHelper.html">ActionView::Helpers::SanitizeHelper</a>
  
    <li><a href="./ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
  
    <li><a href="./ActionView/Helpers/TextHelper.html">ActionView::Helpers::TextHelper</a>
  
    <li><a href="./ActionView/Helpers/TranslationHelper.html">ActionView::Helpers::TranslationHelper</a>
  
    <li><a href="./ActionView/Helpers/UrlHelper.html">ActionView::Helpers::UrlHelper</a>
  
    <li><a href="./ActionView/LogSubscriber.html">ActionView::LogSubscriber</a>
  
    <li><a href="./ActionView/LookupContext.html">ActionView::LookupContext</a>
  
    <li><a href="./ActionView/LookupContext/DetailsCache.html">ActionView::LookupContext::DetailsCache</a>
  
    <li><a href="./ActionView/LookupContext/ViewPaths.html">ActionView::LookupContext::ViewPaths</a>
  
    <li><a href="./ActionView/NullResolver.html">ActionView::NullResolver</a>
  
    <li><a href="./ActionView/PartialRenderer.html">ActionView::PartialRenderer</a>
  
    <li><a href="./ActionView/Railtie.html">ActionView::Railtie</a>
  
    <li><a href="./ActionView/Renderer.html">ActionView::Renderer</a>
  
    <li><a href="./ActionView/Resolver.html">ActionView::Resolver</a>
  
    <li><a href="./ActionView/Resolver/Path.html">ActionView::Resolver::Path</a>
  
    <li><a href="./ActionView/Template.html">ActionView::Template</a>
  
    <li><a href="./ActionView/Template/Handlers.html">ActionView::Template::Handlers</a>
  
    <li><a href="./ActionView/Template/Handlers/Builder.html">ActionView::Template::Handlers::Builder</a>
  
    <li><a href="./ActionView/Template/Handlers/ERB.html">ActionView::Template::Handlers::ERB</a>
  
    <li><a href="./ActionView/Template/Handlers/Erubis.html">ActionView::Template::Handlers::Erubis</a>
  
    <li><a href="./ActionView/TestCase.html">ActionView::TestCase</a>
  
    <li><a href="./ActionView/TestCase/Behavior.html">ActionView::TestCase::Behavior</a>
  
    <li><a href="./ActionView/TestCase/Behavior/ClassMethods.html">ActionView::TestCase::Behavior::ClassMethods</a>
  
    <li><a href="./ActionView/TestCase/Behavior/Locals.html">ActionView::TestCase::Behavior::Locals</a>
  
    <li><a href="./ActionView/TestCase/TestController.html">ActionView::TestCase::TestController</a>
  
    <li><a href="./ActiveModel.html">ActiveModel</a>
  
    <li><a href="./ActiveModel/AttributeMethods.html">ActiveModel::AttributeMethods</a>
  
    <li><a href="./ActiveModel/AttributeMethods/ClassMethods.html">ActiveModel::AttributeMethods::ClassMethods</a>
  
    <li><a href="./ActiveModel/AttributeMethods/ClassMethods/AttributeMethodMatcher.html">ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher</a>
  
    <li><a href="./ActiveModel/BlockValidator.html">ActiveModel::BlockValidator</a>
  
    <li><a href="./ActiveModel/Callbacks.html">ActiveModel::Callbacks</a>
  
    <li><a href="./ActiveModel/Conversion.html">ActiveModel::Conversion</a>
  
    <li><a href="./ActiveModel/Dirty.html">ActiveModel::Dirty</a>
  
    <li><a href="./ActiveModel/EachValidator.html">ActiveModel::EachValidator</a>
  
    <li><a href="./ActiveModel/Errors.html">ActiveModel::Errors</a>
  
    <li><a href="./ActiveModel/Lint.html">ActiveModel::Lint</a>
  
    <li><a href="./ActiveModel/Lint/Tests.html">ActiveModel::Lint::Tests</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity.html">ActiveModel::MassAssignmentSecurity</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity/BlackList.html">ActiveModel::MassAssignmentSecurity::BlackList</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity/ClassMethods.html">ActiveModel::MassAssignmentSecurity::ClassMethods</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity/Error.html">ActiveModel::MassAssignmentSecurity::Error</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity/LoggerSanitizer.html">ActiveModel::MassAssignmentSecurity::LoggerSanitizer</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity/PermissionSet.html">ActiveModel::MassAssignmentSecurity::PermissionSet</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity/Sanitizer.html">ActiveModel::MassAssignmentSecurity::Sanitizer</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity/StrictSanitizer.html">ActiveModel::MassAssignmentSecurity::StrictSanitizer</a>
  
    <li><a href="./ActiveModel/MassAssignmentSecurity/WhiteList.html">ActiveModel::MassAssignmentSecurity::WhiteList</a>
  
    <li><a href="./ActiveModel/MissingAttributeError.html">ActiveModel::MissingAttributeError</a>
  
    <li><a href="./ActiveModel/Name.html">ActiveModel::Name</a>
  
    <li><a href="./ActiveModel/Naming.html">ActiveModel::Naming</a>
  
    <li><a href="./ActiveModel/Observer.html">ActiveModel::Observer</a>
  
    <li><a href="./ActiveModel/ObserverArray.html">ActiveModel::ObserverArray</a>
  
    <li><a href="./ActiveModel/Observing.html">ActiveModel::Observing</a>
  
    <li><a href="./ActiveModel/Observing/ClassMethods.html">ActiveModel::Observing::ClassMethods</a>
  
    <li><a href="./ActiveModel/SecurePassword.html">ActiveModel::SecurePassword</a>
  
    <li><a href="./ActiveModel/SecurePassword/ClassMethods.html">ActiveModel::SecurePassword::ClassMethods</a>
  
    <li><a href="./ActiveModel/SecurePassword/InstanceMethodsOnActivation.html">ActiveModel::SecurePassword::InstanceMethodsOnActivation</a>
  
    <li><a href="./ActiveModel/Serialization.html">ActiveModel::Serialization</a>
  
    <li><a href="./ActiveModel/Serializers.html">ActiveModel::Serializers</a>
  
    <li><a href="./ActiveModel/Serializers/JSON.html">ActiveModel::Serializers::JSON</a>
  
    <li><a href="./ActiveModel/Serializers/Xml.html">ActiveModel::Serializers::Xml</a>
  
    <li><a href="./ActiveModel/StrictValidationFailed.html">ActiveModel::StrictValidationFailed</a>
  
    <li><a href="./ActiveModel/Translation.html">ActiveModel::Translation</a>
  
    <li><a href="./ActiveModel/Validations.html">ActiveModel::Validations</a>
  
    <li><a href="./ActiveModel/Validations/AcceptanceValidator.html">ActiveModel::Validations::AcceptanceValidator</a>
  
    <li><a href="./ActiveModel/Validations/Callbacks.html">ActiveModel::Validations::Callbacks</a>
  
    <li><a href="./ActiveModel/Validations/Callbacks/ClassMethods.html">ActiveModel::Validations::Callbacks::ClassMethods</a>
  
    <li><a href="./ActiveModel/Validations/ClassMethods.html">ActiveModel::Validations::ClassMethods</a>
  
    <li><a href="./ActiveModel/Validations/ConfirmationValidator.html">ActiveModel::Validations::ConfirmationValidator</a>
  
    <li><a href="./ActiveModel/Validations/ExclusionValidator.html">ActiveModel::Validations::ExclusionValidator</a>
  
    <li><a href="./ActiveModel/Validations/FormatValidator.html">ActiveModel::Validations::FormatValidator</a>
  
    <li><a href="./ActiveModel/Validations/HelperMethods.html">ActiveModel::Validations::HelperMethods</a>
  
    <li><a href="./ActiveModel/Validations/InclusionValidator.html">ActiveModel::Validations::InclusionValidator</a>
  
    <li><a href="./ActiveModel/Validations/LengthValidator.html">ActiveModel::Validations::LengthValidator</a>
  
    <li><a href="./ActiveModel/Validations/NumericalityValidator.html">ActiveModel::Validations::NumericalityValidator</a>
  
    <li><a href="./ActiveModel/Validations/PresenceValidator.html">ActiveModel::Validations::PresenceValidator</a>
  
    <li><a href="./ActiveModel/Validations/WithValidator.html">ActiveModel::Validations::WithValidator</a>
  
    <li><a href="./ActiveModel/Validator.html">ActiveModel::Validator</a>
  
    <li><a href="./ActiveResource.html">ActiveResource</a>
  
    <li><a href="./ActiveResource/Base.html">ActiveResource::Base</a>
  
    <li><a href="./ActiveResource/Connection.html">ActiveResource::Connection</a>
  
    <li><a href="./ActiveResource/CustomMethods.html">ActiveResource::CustomMethods</a>
  
    <li><a href="./ActiveResource/CustomMethods/ClassMethods.html">ActiveResource::CustomMethods::ClassMethods</a>
  
    <li><a href="./ActiveResource/Errors.html">ActiveResource::Errors</a>
  
    <li><a href="./ActiveResource/Formats.html">ActiveResource::Formats</a>
  
    <li><a href="./ActiveResource/Formats/JsonFormat.html">ActiveResource::Formats::JsonFormat</a>
  
    <li><a href="./ActiveResource/Formats/XmlFormat.html">ActiveResource::Formats::XmlFormat</a>
  
    <li><a href="./ActiveResource/HttpMock.html">ActiveResource::HttpMock</a>
  
    <li><a href="./ActiveResource/InvalidRequestError.html">ActiveResource::InvalidRequestError</a>
  
    <li><a href="./ActiveResource/LogSubscriber.html">ActiveResource::LogSubscriber</a>
  
    <li><a href="./ActiveResource/Observing.html">ActiveResource::Observing</a>
  
    <li><a href="./ActiveResource/Railtie.html">ActiveResource::Railtie</a>
  
    <li><a href="./ActiveResource/Request.html">ActiveResource::Request</a>
  
    <li><a href="./ActiveResource/Response.html">ActiveResource::Response</a>
  
    <li><a href="./ActiveResource/SSLError.html">ActiveResource::SSLError</a>
  
    <li><a href="./ActiveResource/TimeoutError.html">ActiveResource::TimeoutError</a>
  
    <li><a href="./ActiveResource/Validations.html">ActiveResource::Validations</a>
  
    <li><a href="./HTML.html">HTML</a>
  
    <li><a href="./HTML/FullSanitizer.html">HTML::FullSanitizer</a>
  
    <li><a href="./HTML/LinkSanitizer.html">HTML::LinkSanitizer</a>
  
    <li><a href="./HTML/Sanitizer.html">HTML::Sanitizer</a>
  
    <li><a href="./HTML/Selector.html">HTML::Selector</a>
  
    <li><a href="./HTML/Tag.html">HTML::Tag</a>
  
    <li><a href="./HTML/WhiteListSanitizer.html">HTML::WhiteListSanitizer</a>
  
    <li><a href="./Mysql.html">Mysql</a>
  
    <li><a href="./Mysql/Result.html">Mysql::Result</a>
  
    <li><a href="./Mysql/Stmt.html">Mysql::Stmt</a>
  
    <li><a href="./Mysql/Time.html">Mysql::Time</a>
  
    <li><a href="./Test.html">Test</a>
  
    <li><a href="./Test/Unit.html">Test::Unit</a>
  
    <li><a href="./Test/Unit/Collector.html">Test::Unit::Collector</a>
  
    <li><a href="./Test/Unit/Collector/ObjectSpace.html">Test::Unit::Collector::ObjectSpace</a>
  
    <li><a href="./I18n.html">I18n</a>
  
    <li><a href="./I18n/ExceptionHandler.html">I18n::ExceptionHandler</a>
  
    <li><a href="./I18n/Railtie.html">I18n::Railtie</a>
  
    <li><a href="./Object.html">Object</a>
  
    <li><a href="./ActiveSupport/HashWithIndifferentAccess.html">Object::HashWithIndifferentAccess</a>
  
    <li><a href="./LoadError.html">Object::MissingSourceFile</a>
  
    <li><a href="./ActionMailer.html">ActionMailer</a>
  
    <li><a href="./ActionMailer/Base.html">ActionMailer::Base</a>
  
    <li><a href="./ArJdbcMySQL.html">ArJdbcMySQL</a>
  
    <li><a href="./ArJdbcMySQL/Error.html">ArJdbcMySQL::Error</a>
  
    <li><a href="./ERB.html">ERB</a>
  
    <li><a href="./ERB/Util.html">ERB::Util</a>
  
    <li><a href="./LoadError.html">LoadError</a>
  
    <li><a href="./LoadError.html">LoadError</a>
  
    <li><a href="./Logger.html">Logger</a>
  
    <li><a href="./Logger/SimpleFormatter.html">Logger::SimpleFormatter</a>
  
    <li><a href="./Array.html">Array</a>
  
    <li><a href="./Base64.html">Base64</a>
  
    <li><a href="./Benchmark.html">Benchmark</a>
  
    <li><a href="./BigDecimal.html">BigDecimal</a>
  
    <li><a href="./Class.html">Class</a>
  
    <li><a href="./Date.html">Date</a>
  
    <li><a href="./DateTime.html">DateTime</a>
  
    <li><a href="./Enumerable.html">Enumerable</a>
  
    <li><a href="./FalseClass.html">FalseClass</a>
  
    <li><a href="./File.html">File</a>
  
    <li><a href="./Float.html">Float</a>
  
    <li><a href="./Hash.html">Hash</a>
  
    <li><a href="./Integer.html">Integer</a>
  
    <li><a href="./Kernel.html">Kernel</a>
  
    <li><a href="./Module.html">Module</a>
  
    <li><a href="./NameError.html">NameError</a>
  
    <li><a href="./NilClass.html">NilClass</a>
  
    <li><a href="./Numeric.html">Numeric</a>
  
    <li><a href="./Process.html">Process</a>
  
    <li><a href="./QualifiedConstUtils.html">QualifiedConstUtils</a>
  
    <li><a href="./Rails.html">Rails</a>
  
    <li><a href="./Range.html">Range</a>
  
    <li><a href="./Regexp.html">Regexp</a>
  
    <li><a href="./String.html">String</a>
  
    <li><a href="./Symbol.html">Symbol</a>
  
    <li><a href="./Time.html">Time</a>
  
    <li><a href="./TrueClass.html">TrueClass</a>
  
    <li><a href="./URI.html">URI</a>
  
  </ul>
</nav>

  </div>
</nav>

<div id="documentation">
  <h1 class="class">class Time</h1>

  <div id="description" class="description">
    
  </div><!-- description -->

  
  
  
  <section id="5Buntitled-5D" class="documentation-section">
    

    

    
    <!-- Constants -->
    <section id="constants-list" class="section">
      <h3 class="section-header">Constants</h3>
      <dl>
      
        <dt id="COMMON_YEAR_DAYS_IN_MONTH">COMMON_YEAR_DAYS_IN_MONTH
        
        <dd class="description">
        
      
        <dt id="DATE_FORMATS">DATE_FORMATS
        
        <dd class="description">
        
      
        <dt id="DAYS_INTO_WEEK">DAYS_INTO_WEEK
        
        <dd class="description">
        
      
      </dl>
    </section>
    

    
    <!-- Attributes -->
    <section id="attribute-method-details" class="method-section section">
      <h3 class="section-header">Attributes</h3>

      
      <div id="attribute-c-zone_default" class="method-detail">
        <div class="method-heading attribute-method-heading">
          <span class="method-name">zone_default</span><span
            class="attribute-access-type">[RW]</span>
        </div>

        <div class="method-description">
        
        
        
        </div>
      </div>
      
    </section><!-- attribute-method-details -->
    

    <!-- Methods -->
    
     <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
      <h3 class="section-header">Public Class Methods</h3>

    
      <div id="method-c-3D-3D-3D" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">===</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Overriding case equality method so that it returns true for <a
href="ActiveSupport/TimeWithZone.html">ActiveSupport::TimeWithZone</a>
instances</p>
          

          
          <div class="method-source-code" id="3D-3D-3D-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 12</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">===</span>(<span class="ruby-identifier">other</span>)
  <span class="ruby-keyword">super</span> <span class="ruby-operator">||</span> (<span class="ruby-keyword">self</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Time</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">TimeWithZone</span>))
<span class="ruby-keyword">end</span></pre>
          </div><!-- 3D-3D-3D-source -->
          
        </div>

        

        
      </div><!-- 3D-3D-3D-method -->

    
      <div id="method-c-_load" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">_load</span><span
            class="method-args">(marshaled_time)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="_load-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/marshal.rb, line 8</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_load</span>(<span class="ruby-identifier">marshaled_time</span>)
  <span class="ruby-identifier">time</span> = <span class="ruby-identifier">_load_without_utc_flag</span>(<span class="ruby-identifier">marshaled_time</span>)
  <span class="ruby-identifier">time</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-keyword">do</span>
    <span class="ruby-keyword">if</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-ivar">@marshal_with_utc_coercion</span>)
      <span class="ruby-identifier">val</span> = <span class="ruby-identifier">remove_instance_variable</span>(<span class="ruby-string">&quot;@marshal_with_utc_coercion&quot;</span>)
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">val</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">utc</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">self</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- _load-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-c-_load_without_utc_flag">_load_without_utc_flag</a>, <a href="Time.html#method-c-_load_without_zone">_load_without_zone</a>
        </div>
        

        
      </div><!-- _load-method -->

    
      <div id="method-c-_load_without_utc_flag" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">_load_without_utc_flag</span><span
            class="method-args">(marshaled_time)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-c-_load">_load</a>
        </div>
        
      </div><!-- _load_without_utc_flag-method -->

    
      <div id="method-c-_load_without_zone" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">_load_without_zone</span><span
            class="method-args">(marshaled_time)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-c-_load">_load</a>
        </div>
        
      </div><!-- _load_without_zone-method -->

    
      <div id="method-c-current" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">current</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns <code>Time.zone.now</code> when <code>Time.zone</code> or
<code>config.time_zone</code> are set, otherwise just returns
<code>Time.now</code>.</p>
          

          
          <div class="method-source-code" id="current-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 45</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">current</span>
  <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span> <span class="ruby-operator">?</span> <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span>.<span class="ruby-identifier">now</span> <span class="ruby-operator">:</span> <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- current-source -->
          
        </div>

        

        
      </div><!-- current-method -->

    
      <div id="method-c-days_in_month" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">days_in_month</span><span
            class="method-args">(month, year = now.year)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Return the number of days in the given month. If no year is specified, it
will use the current year.</p>
          

          
          <div class="method-source-code" id="days_in_month-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 18</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">days_in_month</span>(<span class="ruby-identifier">month</span>, <span class="ruby-identifier">year</span> = <span class="ruby-identifier">now</span>.<span class="ruby-identifier">year</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-value">29</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">month</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">::</span><span class="ruby-constant">Date</span>.<span class="ruby-identifier">gregorian_leap?</span>(<span class="ruby-identifier">year</span>)
  <span class="ruby-constant">COMMON_YEAR_DAYS_IN_MONTH</span>[<span class="ruby-identifier">month</span>]
<span class="ruby-keyword">end</span></pre>
          </div><!-- days_in_month-source -->
          
        </div>

        

        
      </div><!-- days_in_month-method -->

    
      <div id="method-c-find_zone" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">find_zone</span><span
            class="method-args">(time_zone)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="find_zone-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/zones.rb, line 64</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_zone</span>(<span class="ruby-identifier">time_zone</span>)
  <span class="ruby-identifier">find_zone!</span>(<span class="ruby-identifier">time_zone</span>) <span class="ruby-keyword">rescue</span> <span class="ruby-keyword">nil</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- find_zone-source -->
          
        </div>

        

        
      </div><!-- find_zone-method -->

    
      <div id="method-c-find_zone-21" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">find_zone!</span><span
            class="method-args">(time_zone)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a TimeZone instance or nil, or raises an ArgumentError for invalid
timezones.</p>
          

          
          <div class="method-source-code" id="find_zone-21-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/zones.rb, line 52</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_zone!</span>(<span class="ruby-identifier">time_zone</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">time_zone</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">time_zone</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">time_zone</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">TimeZone</span>)
  <span class="ruby-comment"># lookup timezone based on identifier (unless we've been passed a TZInfo::Timezone)</span>
  <span class="ruby-keyword">unless</span> <span class="ruby-identifier">time_zone</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:period_for_local</span>)
    <span class="ruby-identifier">time_zone</span> = <span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">TimeZone</span>[<span class="ruby-identifier">time_zone</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">TZInfo</span><span class="ruby-operator">::</span><span class="ruby-constant">Timezone</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">time_zone</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-comment"># Return if a TimeZone instance, or wrap in a TimeZone instance if a TZInfo::Timezone</span>
  <span class="ruby-identifier">time_zone</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">TimeZone</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">time_zone</span> <span class="ruby-operator">:</span> <span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">TimeZone</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">time_zone</span>.<span class="ruby-identifier">name</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">time_zone</span>)
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">TZInfo</span><span class="ruby-operator">::</span><span class="ruby-constant">InvalidTimezoneIdentifier</span>
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">&quot;Invalid Timezone: #{time_zone}&quot;</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- find_zone-21-source -->
          
        </div>

        

        
      </div><!-- find_zone-21-method -->

    
      <div id="method-c-local_time" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">local_time</span><span
            class="method-args">(*args)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Wraps class method <code>time_with_datetime_fallback</code> with
<code>utc_or_local</code> set to <code>:local</code>.</p>
          

          
          <div class="method-source-code" id="local_time-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 40</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">local_time</span>(*<span class="ruby-identifier">args</span>)
  <span class="ruby-identifier">time_with_datetime_fallback</span>(<span class="ruby-value">:local</span>, *<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- local_time-source -->
          
        </div>

        

        
      </div><!-- local_time-method -->

    
      <div id="method-c-time_with_datetime_fallback" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">time_with_datetime_fallback</span><span
            class="method-args">(utc_or_local, year, month=1, day=1, hour=0, min=0, sec=0, usec=0)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> if requested year can be
accommodated by Ruby’s <a href="Time.html">Time</a> class (i.e., if year is
within either 1970..2038 or 1902..2038, depending on system architecture);
otherwise returns a <a href="DateTime.html">DateTime</a>.</p>
          

          
          <div class="method-source-code" id="time_with_datetime_fallback-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 26</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">time_with_datetime_fallback</span>(<span class="ruby-identifier">utc_or_local</span>, <span class="ruby-identifier">year</span>, <span class="ruby-identifier">month</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">day</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">hour</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">min</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">sec</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">usec</span>=<span class="ruby-value">0</span>)
  <span class="ruby-identifier">time</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">utc_or_local</span>, <span class="ruby-identifier">year</span>, <span class="ruby-identifier">month</span>, <span class="ruby-identifier">day</span>, <span class="ruby-identifier">hour</span>, <span class="ruby-identifier">min</span>, <span class="ruby-identifier">sec</span>, <span class="ruby-identifier">usec</span>)
  <span class="ruby-comment"># This check is needed because Time.utc(y) returns a time object in the 2000s for 0 &lt;= y &lt;= 138.</span>
  <span class="ruby-identifier">time</span>.<span class="ruby-identifier">year</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">year</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">time</span> <span class="ruby-operator">:</span> <span class="ruby-operator">::</span><span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">civil_from_format</span>(<span class="ruby-identifier">utc_or_local</span>, <span class="ruby-identifier">year</span>, <span class="ruby-identifier">month</span>, <span class="ruby-identifier">day</span>, <span class="ruby-identifier">hour</span>, <span class="ruby-identifier">min</span>, <span class="ruby-identifier">sec</span>)
<span class="ruby-keyword">rescue</span>
  <span class="ruby-operator">::</span><span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">civil_from_format</span>(<span class="ruby-identifier">utc_or_local</span>, <span class="ruby-identifier">year</span>, <span class="ruby-identifier">month</span>, <span class="ruby-identifier">day</span>, <span class="ruby-identifier">hour</span>, <span class="ruby-identifier">min</span>, <span class="ruby-identifier">sec</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- time_with_datetime_fallback-source -->
          
        </div>

        

        
      </div><!-- time_with_datetime_fallback-method -->

    
      <div id="method-c-use_zone" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">use_zone</span><span
            class="method-args">(time_zone) { || ... }</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Allows override of <code>Time.zone</code> locally inside supplied block;
resets <code>Time.zone</code> to existing value when done.</p>
          

          
          <div class="method-source-code" id="use_zone-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/zones.rb, line 41</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">use_zone</span>(<span class="ruby-identifier">time_zone</span>)
  <span class="ruby-identifier">new_zone</span> = <span class="ruby-identifier">find_zone!</span>(<span class="ruby-identifier">time_zone</span>)
  <span class="ruby-keyword">begin</span>
    <span class="ruby-identifier">old_zone</span>, <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span>, <span class="ruby-identifier">new_zone</span>
    <span class="ruby-keyword">yield</span>
  <span class="ruby-keyword">ensure</span>
    <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span> = <span class="ruby-identifier">old_zone</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- use_zone-source -->
          
        </div>

        

        
      </div><!-- use_zone-method -->

    
      <div id="method-c-utc_time" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">utc_time</span><span
            class="method-args">(*args)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Wraps class method <code>time_with_datetime_fallback</code> with
<code>utc_or_local</code> set to <code>:utc</code>.</p>
          

          
          <div class="method-source-code" id="utc_time-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 35</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">utc_time</span>(*<span class="ruby-identifier">args</span>)
  <span class="ruby-identifier">time_with_datetime_fallback</span>(<span class="ruby-value">:utc</span>, *<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- utc_time-source -->
          
        </div>

        

        
      </div><!-- utc_time-method -->

    
      <div id="method-c-zone" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">zone</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns the TimeZone for the current request, if this has been set (via <a
href="Time.html#method-c-zone-3D">::zone=</a>). If <code>Time.zone</code>
has not been set for the current request, returns the TimeZone specified in
<code>config.time_zone</code>.</p>
          

          
          <div class="method-source-code" id="zone-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/zones.rb, line 9</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">zone</span>
  <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-value">:time_zone</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">zone_default</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- zone-source -->
          
        </div>

        

        
      </div><!-- zone-method -->

    
      <div id="method-c-zone-3D" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">zone=</span><span
            class="method-args">(time_zone)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Sets <code>Time.zone</code> to a TimeZone object for the current
request/thread.</p>

<p>This method accepts any of the following:</p>
<ul><li>
<p>A <a href="Rails.html">Rails</a> TimeZone object.</p>
</li><li>
<p>An identifier for a <a href="Rails.html">Rails</a> TimeZone object (e.g.,
“Eastern <a href="Time.html">Time</a> (US &amp; Canada)”,
<code>-5.hours</code>).</p>
</li><li>
<p>A TZInfo::Timezone object.</p>
</li><li>
<p>An identifier for a TZInfo::Timezone object (e.g., “America/New_York”).</p>
</li></ul>

<p>Here’s an example of how you might set <code>Time.zone</code> on a per
request basis and reset it when the request is done.
<code>current_user.time_zone</code> just needs to return a string
identifying the user’s preferred time zone:</p>

<pre class="ruby"><span class="ruby-keyword">class</span> <span class="ruby-constant">ApplicationController</span> <span class="ruby-operator">&lt;</span> <span class="ruby-constant">ActionController</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>
  <span class="ruby-identifier">around_filter</span> :<span class="ruby-identifier">set_time_zone</span>

  <span class="ruby-keyword">def</span> <span class="ruby-identifier">set_time_zone</span>
    <span class="ruby-identifier">old_time_zone</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span>
    <span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span> = <span class="ruby-identifier">current_user</span>.<span class="ruby-identifier">time_zone</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">logged_in?</span>
    <span class="ruby-keyword">yield</span>
  <span class="ruby-keyword">ensure</span>
    <span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span> = <span class="ruby-identifier">old_time_zone</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
</pre>
          

          
          <div class="method-source-code" id="zone-3D-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/zones.rb, line 36</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">zone=</span>(<span class="ruby-identifier">time_zone</span>)
  <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-value">:time_zone</span>] = <span class="ruby-identifier">find_zone!</span>(<span class="ruby-identifier">time_zone</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- zone-3D-source -->
          
        </div>

        

        
      </div><!-- zone-3D-method -->

    
    </section><!-- public-class-method-details -->
  
     <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
      <h3 class="section-header">Public Instance Methods</h3>

    
      <div id="method-i-2D" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">-</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-minus_without_duration">minus_without_duration</a>, <a href="Time.html#method-i-minus_without_coercion">minus_without_coercion</a>
        </div>
        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-minus_with_coercion">minus_with_coercion</a>
        </div>
        
      </div><!-- 2D-method -->

    
      <div id="method-i-3C-3D-3E" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">&lt;=&gt;</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-compare_without_coercion">compare_without_coercion</a>
        </div>
        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-compare_with_coercion">compare_with_coercion</a>
        </div>
        
      </div><!-- 3C-3D-3E-method -->

    
      <div id="method-i-_dump" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">_dump</span><span
            class="method-args">(*args)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="_dump-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/marshal.rb, line 20</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_dump</span>(*<span class="ruby-identifier">args</span>)
  <span class="ruby-identifier">obj</span> = <span class="ruby-identifier">dup</span>
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-string">'@marshal_with_utc_coercion'</span>, <span class="ruby-identifier">utc?</span>)
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">_dump_without_utc_flag</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- _dump-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-_dump_without_utc_flag">_dump_without_utc_flag</a>, <a href="Time.html#method-i-_dump_without_zone">_dump_without_zone</a>
        </div>
        

        
      </div><!-- _dump-method -->

    
      <div id="method-i-_dump_without_utc_flag" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">_dump_without_utc_flag</span><span
            class="method-args">(*args)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-_dump">_dump</a>
        </div>
        
      </div><!-- _dump_without_utc_flag-method -->

    
      <div id="method-i-_dump_without_zone" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">_dump_without_zone</span><span
            class="method-args">(*args)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-_dump">_dump</a>
        </div>
        
      </div><!-- _dump_without_zone-method -->

    
      <div id="method-i-acts_like_time-3F" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">acts_like_time?</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Duck-types as a Time-like class. See <a
href="Object.html#method-i-acts_like-3F">Object#acts_like?</a>.</p>
          

          
          <div class="method-source-code" id="acts_like_time-3F-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/acts_like.rb, line 5</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">acts_like_time?</span>
  <span class="ruby-keyword">true</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- acts_like_time-3F-source -->
          
        </div>

        

        
      </div><!-- acts_like_time-3F-method -->

    
      <div id="method-i-advance" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">advance</span><span
            class="method-args">(options)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Uses <a href="Date.html">Date</a> to provide precise <a
href="Time.html">Time</a> calculations for years, months, and days. The
<code>options</code> parameter takes a hash with any of these keys:
<code>:years</code>, <code>:months</code>, <code>:weeks</code>,
<code>:days</code>, <code>:hours</code>, <code>:minutes</code>,
<code>:seconds</code>.</p>
          

          
          <div class="method-source-code" id="advance-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 90</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">advance</span>(<span class="ruby-identifier">options</span>)
  <span class="ruby-keyword">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:weeks</span>].<span class="ruby-identifier">nil?</span>
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:weeks</span>], <span class="ruby-identifier">partial_weeks</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:weeks</span>].<span class="ruby-identifier">divmod</span>(<span class="ruby-value">1</span>)
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:days</span>] = (<span class="ruby-identifier">options</span>[<span class="ruby-value">:days</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span>) <span class="ruby-operator">+</span> <span class="ruby-value">7</span> * <span class="ruby-identifier">partial_weeks</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-keyword">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:days</span>].<span class="ruby-identifier">nil?</span>
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:days</span>], <span class="ruby-identifier">partial_days</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:days</span>].<span class="ruby-identifier">divmod</span>(<span class="ruby-value">1</span>)
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:hours</span>] = (<span class="ruby-identifier">options</span>[<span class="ruby-value">:hours</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span>) <span class="ruby-operator">+</span> <span class="ruby-value">24</span> * <span class="ruby-identifier">partial_days</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">d</span> = <span class="ruby-identifier">to_date</span>.<span class="ruby-identifier">advance</span>(<span class="ruby-identifier">options</span>)
  <span class="ruby-identifier">time_advanced_by_date</span> = <span class="ruby-identifier">change</span>(<span class="ruby-value">:year</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">year</span>, <span class="ruby-value">:month</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">month</span>, <span class="ruby-value">:day</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">day</span>)
  <span class="ruby-identifier">seconds_to_advance</span> = (<span class="ruby-identifier">options</span>[<span class="ruby-value">:seconds</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span>) <span class="ruby-operator">+</span> (<span class="ruby-identifier">options</span>[<span class="ruby-value">:minutes</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span>) * <span class="ruby-value">60</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">options</span>[<span class="ruby-value">:hours</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span>) * <span class="ruby-value">3600</span>
  <span class="ruby-identifier">seconds_to_advance</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">time_advanced_by_date</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">time_advanced_by_date</span>.<span class="ruby-identifier">since</span>(<span class="ruby-identifier">seconds_to_advance</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- advance-source -->
          
        </div>

        

        
      </div><!-- advance-method -->

    
      <div id="method-i-ago" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">ago</span><span
            class="method-args">(seconds)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the time a number
of seconds ago, this is basically a wrapper around the <a
href="Numeric.html">Numeric</a> extension</p>
          

          
          <div class="method-source-code" id="ago-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 108</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ago</span>(<span class="ruby-identifier">seconds</span>)
  <span class="ruby-identifier">since</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">seconds</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- ago-source -->
          
        </div>

        

        
      </div><!-- ago-method -->

    
      <div id="method-i-all_day" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">all_day</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a <a href="Range.html">Range</a> representing the whole day of the
current time.</p>
          

          
          <div class="method-source-code" id="all_day-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 288</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">all_day</span>
  <span class="ruby-identifier">beginning_of_day</span><span class="ruby-operator">..</span><span class="ruby-identifier">end_of_day</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- all_day-source -->
          
        </div>

        

        
      </div><!-- all_day-method -->

    
      <div id="method-i-all_month" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">all_month</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a <a href="Range.html">Range</a> representing the whole month of
the current time.</p>
          

          
          <div class="method-source-code" id="all_month-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 298</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">all_month</span>
  <span class="ruby-identifier">beginning_of_month</span><span class="ruby-operator">..</span><span class="ruby-identifier">end_of_month</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- all_month-source -->
          
        </div>

        

        
      </div><!-- all_month-method -->

    
      <div id="method-i-all_quarter" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">all_quarter</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a <a href="Range.html">Range</a> representing the whole quarter of
the current time.</p>
          

          
          <div class="method-source-code" id="all_quarter-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 303</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">all_quarter</span>
  <span class="ruby-identifier">beginning_of_quarter</span><span class="ruby-operator">..</span><span class="ruby-identifier">end_of_quarter</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- all_quarter-source -->
          
        </div>

        

        
      </div><!-- all_quarter-method -->

    
      <div id="method-i-all_week" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">all_week</span><span
            class="method-args">(start_day = :monday)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a <a href="Range.html">Range</a> representing the whole week of the
current time. Week starts on start_day (default is :monday, i.e. end of
Sunday).</p>
          

          
          <div class="method-source-code" id="all_week-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 293</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">all_week</span>(<span class="ruby-identifier">start_day</span> = <span class="ruby-value">:monday</span>)
  <span class="ruby-identifier">beginning_of_week</span>(<span class="ruby-identifier">start_day</span>)<span class="ruby-operator">..</span><span class="ruby-identifier">end_of_week</span>(<span class="ruby-identifier">start_day</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- all_week-source -->
          
        </div>

        

        
      </div><!-- all_week-method -->

    
      <div id="method-i-all_year" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">all_year</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a <a href="Range.html">Range</a> representing the whole year of the
current time.</p>
          

          
          <div class="method-source-code" id="all_year-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 308</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">all_year</span>
  <span class="ruby-identifier">beginning_of_year</span><span class="ruby-operator">..</span><span class="ruby-identifier">end_of_year</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- all_year-source -->
          
        </div>

        

        
      </div><!-- all_year-method -->

    
      <div id="method-i-at_beginning_of_day" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_beginning_of_day</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-beginning_of_day">beginning_of_day</a>
        </div>
        
      </div><!-- at_beginning_of_day-method -->

    
      <div id="method-i-at_beginning_of_hour" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_beginning_of_hour</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-beginning_of_hour">beginning_of_hour</a>
        </div>
        
      </div><!-- at_beginning_of_hour-method -->

    
      <div id="method-i-at_beginning_of_month" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_beginning_of_month</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-beginning_of_month">beginning_of_month</a>
        </div>
        
      </div><!-- at_beginning_of_month-method -->

    
      <div id="method-i-at_beginning_of_quarter" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_beginning_of_quarter</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-beginning_of_quarter">beginning_of_quarter</a>
        </div>
        
      </div><!-- at_beginning_of_quarter-method -->

    
      <div id="method-i-at_beginning_of_week" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_beginning_of_week</span><span
            class="method-args">(start_day = :monday)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-beginning_of_week">beginning_of_week</a>
        </div>
        
      </div><!-- at_beginning_of_week-method -->

    
      <div id="method-i-at_beginning_of_year" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_beginning_of_year</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-beginning_of_year">beginning_of_year</a>
        </div>
        
      </div><!-- at_beginning_of_year-method -->

    
      <div id="method-i-at_end_of_month" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_end_of_month</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-end_of_month">end_of_month</a>
        </div>
        
      </div><!-- at_end_of_month-method -->

    
      <div id="method-i-at_end_of_quarter" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_end_of_quarter</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-end_of_quarter">end_of_quarter</a>
        </div>
        
      </div><!-- at_end_of_quarter-method -->

    
      <div id="method-i-at_end_of_week" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_end_of_week</span><span
            class="method-args">(start_day = :monday)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-end_of_week">end_of_week</a>
        </div>
        
      </div><!-- at_end_of_week-method -->

    
      <div id="method-i-at_end_of_year" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_end_of_year</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-end_of_year">end_of_year</a>
        </div>
        
      </div><!-- at_end_of_year-method -->

    
      <div id="method-i-at_midnight" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">at_midnight</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-beginning_of_day">beginning_of_day</a>
        </div>
        
      </div><!-- at_midnight-method -->

    
      <div id="method-i-beginning_of_day" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">beginning_of_day</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the start of the
day (0:00)</p>
          

          
          <div class="method-source-code" id="beginning_of_day-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 210</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">beginning_of_day</span>
  <span class="ruby-comment">#(self - seconds_since_midnight).change(:usec =&gt; 0)</span>
  <span class="ruby-identifier">change</span>(<span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- beginning_of_day-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-midnight">midnight</a>, <a href="Time.html#method-i-at_midnight">at_midnight</a>, <a href="Time.html#method-i-at_beginning_of_day">at_beginning_of_day</a>
        </div>
        

        
      </div><!-- beginning_of_day-method -->

    
      <div id="method-i-beginning_of_hour" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">beginning_of_hour</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the start of the
hour (x:00)</p>
          

          
          <div class="method-source-code" id="beginning_of_hour-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 224</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">beginning_of_hour</span>
  <span class="ruby-identifier">change</span>(<span class="ruby-value">:min</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- beginning_of_hour-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_beginning_of_hour">at_beginning_of_hour</a>
        </div>
        

        
      </div><!-- beginning_of_hour-method -->

    
      <div id="method-i-beginning_of_month" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">beginning_of_month</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the start of the
month (1st of the month, 0:00)</p>
          

          
          <div class="method-source-code" id="beginning_of_month-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 239</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">beginning_of_month</span>
  <span class="ruby-comment">#self - ((self.mday-1).days + self.seconds_since_midnight)</span>
  <span class="ruby-identifier">change</span>(<span class="ruby-value">:day</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>, <span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- beginning_of_month-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_beginning_of_month">at_beginning_of_month</a>
        </div>
        

        
      </div><!-- beginning_of_month-method -->

    
      <div id="method-i-beginning_of_quarter" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">beginning_of_quarter</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns  a new <a href="Time.html">Time</a> representing the start of the
quarter (1st of january, april, july, october, 0:00)</p>
          

          
          <div class="method-source-code" id="beginning_of_quarter-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 254</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">beginning_of_quarter</span>
  <span class="ruby-identifier">beginning_of_month</span>.<span class="ruby-identifier">change</span>(<span class="ruby-value">:month</span> =<span class="ruby-operator">&gt;</span> [<span class="ruby-value">10</span>, <span class="ruby-value">7</span>, <span class="ruby-value">4</span>, <span class="ruby-value">1</span>].<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">month</span> })
<span class="ruby-keyword">end</span></pre>
          </div><!-- beginning_of_quarter-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_beginning_of_quarter">at_beginning_of_quarter</a>
        </div>
        

        
      </div><!-- beginning_of_quarter-method -->

    
      <div id="method-i-beginning_of_week" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">beginning_of_week</span><span
            class="method-args">(start_day = :monday)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the “start” of this
week, week starts on start_day (default is :monday, i.e. Monday, 0:00).</p>
          

          
          <div class="method-source-code" id="beginning_of_week-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 174</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">beginning_of_week</span>(<span class="ruby-identifier">start_day</span> = <span class="ruby-value">:monday</span>)
  <span class="ruby-identifier">days_to_start</span> = <span class="ruby-identifier">days_to_week_start</span>(<span class="ruby-identifier">start_day</span>)
  (<span class="ruby-keyword">self</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">days_to_start</span>.<span class="ruby-identifier">days</span>).<span class="ruby-identifier">midnight</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- beginning_of_week-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_beginning_of_week">at_beginning_of_week</a>
        </div>
        

        
      </div><!-- beginning_of_week-method -->

    
      <div id="method-i-beginning_of_year" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">beginning_of_year</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the start of the
year (1st of january, 0:00)</p>
          

          
          <div class="method-source-code" id="beginning_of_year-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 266</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">beginning_of_year</span>
  <span class="ruby-identifier">change</span>(<span class="ruby-value">:month</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>, <span class="ruby-value">:day</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>, <span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- beginning_of_year-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_beginning_of_year">at_beginning_of_year</a>
        </div>
        

        
      </div><!-- beginning_of_year-method -->

    
      <div id="method-i-change" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">change</span><span
            class="method-args">(options)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> where one or more of the
elements have been changed according to the <code>options</code> parameter.
The time options (hour, min, sec, usec) reset cascadingly, so if only the
hour is passed, then minute, sec, and usec is set to 0. If the hour and
minute is passed, then sec and usec is set to 0.</p>
          

          
          <div class="method-source-code" id="change-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 73</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change</span>(<span class="ruby-identifier">options</span>)
  <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">send</span>(
    <span class="ruby-identifier">utc?</span> <span class="ruby-operator">?</span> <span class="ruby-value">:utc_time</span> <span class="ruby-operator">:</span> <span class="ruby-value">:local_time</span>,
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:year</span>]  <span class="ruby-operator">||</span> <span class="ruby-identifier">year</span>,
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:month</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">month</span>,
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:day</span>]   <span class="ruby-operator">||</span> <span class="ruby-identifier">day</span>,
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:hour</span>]  <span class="ruby-operator">||</span> <span class="ruby-identifier">hour</span>,
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:min</span>]   <span class="ruby-operator">||</span> (<span class="ruby-identifier">options</span>[<span class="ruby-value">:hour</span>] <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">min</span>),
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:sec</span>]   <span class="ruby-operator">||</span> ((<span class="ruby-identifier">options</span>[<span class="ruby-value">:hour</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:min</span>]) <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">sec</span>),
    <span class="ruby-identifier">options</span>[<span class="ruby-value">:usec</span>]  <span class="ruby-operator">||</span> ((<span class="ruby-identifier">options</span>[<span class="ruby-value">:hour</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:min</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:sec</span>]) <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">usec</span>)
  )
<span class="ruby-keyword">end</span></pre>
          </div><!-- change-source -->
          
        </div>

        

        
      </div><!-- change-method -->

    
      <div id="method-i-compare_with_coercion" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">compare_with_coercion</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Layers additional behavior on Time#&lt;=&gt; so that <a
href="DateTime.html">DateTime</a> and <a
href="ActiveSupport/TimeWithZone.html">ActiveSupport::TimeWithZone</a>
instances can be chronologically compared with a <a
href="Time.html">Time</a></p>
          

          
          <div class="method-source-code" id="compare_with_coercion-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 344</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compare_with_coercion</span>(<span class="ruby-identifier">other</span>)
  <span class="ruby-comment"># we're avoiding Time#to_datetime cause it's expensive</span>
  <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Time</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">compare_without_coercion</span>(<span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_time</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">to_datetime</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- compare_with_coercion-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-3C-3D-3E">&lt;=&gt;</a>
        </div>
        

        
      </div><!-- compare_with_coercion-method -->

    
      <div id="method-i-compare_without_coercion" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">compare_without_coercion</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-3C-3D-3E">&lt;=&gt;</a>
        </div>
        
      </div><!-- compare_without_coercion-method -->

    
      <div id="method-i-days_to_week_start" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">days_to_week_start</span><span
            class="method-args">(start_day = :monday)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns number of days to start of this week, week starts on start_day
(default is :monday).</p>
          

          
          <div class="method-source-code" id="days_to_week_start-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 166</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">days_to_week_start</span>(<span class="ruby-identifier">start_day</span> = <span class="ruby-value">:monday</span>)
  <span class="ruby-identifier">start_day_number</span> = <span class="ruby-constant">DAYS_INTO_WEEK</span>[<span class="ruby-identifier">start_day</span>]
  <span class="ruby-identifier">current_day_number</span> = <span class="ruby-identifier">wday</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">wday</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">6</span>
  <span class="ruby-identifier">days_span</span> = <span class="ruby-identifier">current_day_number</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">start_day_number</span>
  <span class="ruby-identifier">days_span</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">days_span</span> <span class="ruby-operator">:</span> <span class="ruby-value">7</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">days_span</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- days_to_week_start-source -->
          
        </div>

        

        
      </div><!-- days_to_week_start-method -->

    
      <div id="method-i-end_of_day" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">end_of_day</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the end of the day,
23:59:59.999999 (.999999999 in ruby1.9)</p>
          

          
          <div class="method-source-code" id="end_of_day-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 219</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">end_of_day</span>
  <span class="ruby-identifier">change</span>(<span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">23</span>, <span class="ruby-value">:min</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">59</span>, <span class="ruby-value">:sec</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">59</span>, <span class="ruby-value">:usec</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">999999.999</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- end_of_day-source -->
          
        </div>

        

        
      </div><!-- end_of_day-method -->

    
      <div id="method-i-end_of_hour" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">end_of_hour</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the end of the
hour, x:59:59.999999 (.999999999 in ruby1.9)</p>
          

          
          <div class="method-source-code" id="end_of_hour-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 230</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">end_of_hour</span>
  <span class="ruby-identifier">change</span>(
    <span class="ruby-value">:min</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">59</span>,
    <span class="ruby-value">:sec</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">59</span>,
    <span class="ruby-value">:usec</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">999999.999</span>
  )
<span class="ruby-keyword">end</span></pre>
          </div><!-- end_of_hour-source -->
          
        </div>

        

        
      </div><!-- end_of_hour-method -->

    
      <div id="method-i-end_of_month" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">end_of_month</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the end of the
month (end of the last day of the month)</p>
          

          
          <div class="method-source-code" id="end_of_month-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 246</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">end_of_month</span>
  <span class="ruby-comment">#self - ((self.mday-1).days + self.seconds_since_midnight)</span>
  <span class="ruby-identifier">last_day</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">days_in_month</span>(<span class="ruby-identifier">month</span>, <span class="ruby-identifier">year</span>)
  <span class="ruby-identifier">change</span>(<span class="ruby-value">:day</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">last_day</span>, <span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">23</span>, <span class="ruby-value">:min</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">59</span>, <span class="ruby-value">:sec</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">59</span>, <span class="ruby-value">:usec</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">999999.999</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- end_of_month-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_end_of_month">at_end_of_month</a>
        </div>
        

        
      </div><!-- end_of_month-method -->

    
      <div id="method-i-end_of_quarter" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">end_of_quarter</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the end of the
quarter (end of the last day of march, june, september, december)</p>
          

          
          <div class="method-source-code" id="end_of_quarter-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 260</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">end_of_quarter</span>
  <span class="ruby-identifier">beginning_of_month</span>.<span class="ruby-identifier">change</span>(<span class="ruby-value">:month</span> =<span class="ruby-operator">&gt;</span> [<span class="ruby-value">3</span>, <span class="ruby-value">6</span>, <span class="ruby-value">9</span>, <span class="ruby-value">12</span>].<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">month</span> }).<span class="ruby-identifier">end_of_month</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- end_of_quarter-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_end_of_quarter">at_end_of_quarter</a>
        </div>
        

        
      </div><!-- end_of_quarter-method -->

    
      <div id="method-i-end_of_week" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">end_of_week</span><span
            class="method-args">(start_day = :monday)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the end of this
week, week starts on start_day (default is :monday, i.e. end of Sunday).</p>
          

          
          <div class="method-source-code" id="end_of_week-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 187</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">end_of_week</span>(<span class="ruby-identifier">start_day</span> = <span class="ruby-value">:monday</span>)
  <span class="ruby-identifier">days_to_end</span> =  <span class="ruby-value">6</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">days_to_week_start</span>(<span class="ruby-identifier">start_day</span>)
  (<span class="ruby-keyword">self</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">days_to_end</span>.<span class="ruby-identifier">days</span>).<span class="ruby-identifier">end_of_day</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- end_of_week-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_end_of_week">at_end_of_week</a>
        </div>
        

        
      </div><!-- end_of_week-method -->

    
      <div id="method-i-end_of_year" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">end_of_year</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the end of the year
(end of the 31st of december)</p>
          

          
          <div class="method-source-code" id="end_of_year-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 272</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">end_of_year</span>
  <span class="ruby-identifier">change</span>(<span class="ruby-value">:month</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">12</span>, <span class="ruby-value">:day</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">31</span>, <span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">23</span>, <span class="ruby-value">:min</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">59</span>, <span class="ruby-value">:sec</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">59</span>, <span class="ruby-value">:usec</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">999999.999</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- end_of_year-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-at_end_of_year">at_end_of_year</a>
        </div>
        

        
      </div><!-- end_of_year-method -->

    
      <div id="method-i-eql-3F" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">eql?</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-eql_without_coercion">eql_without_coercion</a>
        </div>
        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-eql_with_coercion">eql_with_coercion</a>
        </div>
        
      </div><!-- eql-3F-method -->

    
      <div id="method-i-eql_with_coercion" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">eql_with_coercion</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Layers additional behavior on <a href="Time.html#method-i-eql-3F">#eql?</a>
so that <a
href="ActiveSupport/TimeWithZone.html">ActiveSupport::TimeWithZone</a>
instances can be eql? to an equivalent <a href="Time.html">Time</a></p>
          

          
          <div class="method-source-code" id="eql_with_coercion-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 353</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">eql_with_coercion</span>(<span class="ruby-identifier">other</span>)
  <span class="ruby-comment"># if other is an ActiveSupport::TimeWithZone, coerce a Time instance from it so we can do eql? comparison</span>
  <span class="ruby-identifier">other</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">comparable_time</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:comparable_time</span>)
  <span class="ruby-identifier">eql_without_coercion</span>(<span class="ruby-identifier">other</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- eql_with_coercion-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-eql-3F">eql?</a>
        </div>
        

        
      </div><!-- eql_with_coercion-method -->

    
      <div id="method-i-eql_without_coercion" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">eql_without_coercion</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-eql-3F">eql?</a>
        </div>
        
      </div><!-- eql_without_coercion-method -->

    
      <div id="method-i-formatted_offset" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">formatted_offset</span><span
            class="method-args">(colon = true, alternate_utc_string = nil)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns the UTC offset as an +HH:MM formatted string.</p>

<pre class="ruby"><span class="ruby-constant">Time</span>.<span class="ruby-identifier">local</span>(<span class="ruby-value">2000</span>).<span class="ruby-identifier">formatted_offset</span>         <span class="ruby-comment"># =&gt; &quot;-06:00&quot;</span>
<span class="ruby-constant">Time</span>.<span class="ruby-identifier">local</span>(<span class="ruby-value">2000</span>).<span class="ruby-identifier">formatted_offset</span>(<span class="ruby-keyword">false</span>)  <span class="ruby-comment"># =&gt; &quot;-0600&quot;</span>
</pre>
          

          
          <div class="method-source-code" id="formatted_offset-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/conversions.rb, line 54</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">formatted_offset</span>(<span class="ruby-identifier">colon</span> = <span class="ruby-keyword">true</span>, <span class="ruby-identifier">alternate_utc_string</span> = <span class="ruby-keyword">nil</span>)
  <span class="ruby-identifier">utc?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">alternate_utc_string</span> <span class="ruby-operator">||</span> <span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">TimeZone</span>.<span class="ruby-identifier">seconds_to_utc_offset</span>(<span class="ruby-identifier">utc_offset</span>, <span class="ruby-identifier">colon</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- formatted_offset-source -->
          
        </div>

        

        
      </div><!-- formatted_offset-method -->

    
      <div id="method-i-future-3F" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">future?</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Tells whether the <a href="Time.html">Time</a> object’s time lies in the
future</p>
          

          
          <div class="method-source-code" id="future-3F-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 61</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">future?</span>
  <span class="ruby-keyword">self</span> <span class="ruby-operator">&gt;</span> <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">current</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- future-3F-source -->
          
        </div>

        

        
      </div><!-- future-3F-method -->

    
      <div id="method-i-in" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">in</span><span
            class="method-args">(seconds)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-since">since</a>
        </div>
        
      </div><!-- in-method -->

    
      <div id="method-i-in_time_zone" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">in_time_zone</span><span
            class="method-args">(zone = ::Time.zone)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns the simultaneous time in <code>Time.zone</code>.</p>

<pre class="ruby"><span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span> = <span class="ruby-string">'Hawaii'</span>         <span class="ruby-comment"># =&gt; 'Hawaii'</span>
<span class="ruby-constant">Time</span>.<span class="ruby-identifier">utc</span>(<span class="ruby-value">2000</span>).<span class="ruby-identifier">in_time_zone</span>  <span class="ruby-comment"># =&gt; Fri, 31 Dec 1999 14:00:00 HST -10:00</span>
</pre>

<p>This method is similar to Time#localtime, except that it uses
<code>Time.zone</code> as the local zone instead of the operating system’s
time zone.</p>

<p>You can also pass in a TimeZone instance or string that identifies a
TimeZone as an argument, and the conversion will be based on that zone
instead of <code>Time.zone</code>.</p>

<pre class="ruby"><span class="ruby-constant">Time</span>.<span class="ruby-identifier">utc</span>(<span class="ruby-value">2000</span>).<span class="ruby-identifier">in_time_zone</span>(<span class="ruby-string">'Alaska'</span>)  <span class="ruby-comment"># =&gt; Fri, 31 Dec 1999 15:00:00 AKST -09:00</span>
</pre>
          

          
          <div class="method-source-code" id="in_time_zone-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/zones.rb, line 81</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">in_time_zone</span>(<span class="ruby-identifier">zone</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">zone</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">zone</span>

  <span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">TimeWithZone</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">utc?</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">self</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">getutc</span>, <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">find_zone!</span>(<span class="ruby-identifier">zone</span>))
<span class="ruby-keyword">end</span></pre>
          </div><!-- in_time_zone-source -->
          
        </div>

        

        
      </div><!-- in_time_zone-method -->

    
      <div id="method-i-midnight" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">midnight</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-beginning_of_day">beginning_of_day</a>
        </div>
        
      </div><!-- midnight-method -->

    
      <div id="method-i-minus_with_coercion" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">minus_with_coercion</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Time#- can also be used to determine the number of seconds between two <a
href="Time.html">Time</a> instances. We’re layering on additional behavior
so that <a
href="ActiveSupport/TimeWithZone.html">ActiveSupport::TimeWithZone</a>
instances are coerced into values that Time#- will recognize</p>
          

          
          <div class="method-source-code" id="minus_with_coercion-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 335</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">minus_with_coercion</span>(<span class="ruby-identifier">other</span>)
  <span class="ruby-identifier">other</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">comparable_time</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:comparable_time</span>)
  <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">DateTime</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">to_f</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">minus_without_coercion</span>(<span class="ruby-identifier">other</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- minus_with_coercion-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-2D">-</a>
        </div>
        

        
      </div><!-- minus_with_coercion-method -->

    
      <div id="method-i-minus_without_coercion" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">minus_without_coercion</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-2D">-</a>
        </div>
        
      </div><!-- minus_without_coercion-method -->

    
      <div id="method-i-minus_without_duration" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">minus_without_duration</span><span
            class="method-args">(other)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-2D">-</a>
        </div>
        
      </div><!-- minus_without_duration-method -->

    
      <div id="method-i-monday" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">monday</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <code>Date</code>/<code>DateTime</code> representing the
start of this week. Week is assumed to start on a Monday.
<code>DateTime</code> objects have their time set to 0:00.</p>
          

          
          <div class="method-source-code" id="monday-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 182</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">monday</span>
  <span class="ruby-identifier">beginning_of_week</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- monday-source -->
          
        </div>

        

        
      </div><!-- monday-method -->

    
      <div id="method-i-months_ago" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">months_ago</span><span
            class="method-args">(months)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the time a number
of specified months ago</p>
          

          
          <div class="method-source-code" id="months_ago-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 126</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">months_ago</span>(<span class="ruby-identifier">months</span>)
  <span class="ruby-identifier">advance</span>(<span class="ruby-value">:months</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-operator">-</span><span class="ruby-identifier">months</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- months_ago-source -->
          
        </div>

        

        
      </div><!-- months_ago-method -->

    
      <div id="method-i-months_since" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">months_since</span><span
            class="method-args">(months)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the time a number
of specified months in the future</p>
          

          
          <div class="method-source-code" id="months_since-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 131</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">months_since</span>(<span class="ruby-identifier">months</span>)
  <span class="ruby-identifier">advance</span>(<span class="ruby-value">:months</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">months</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- months_since-source -->
          
        </div>

        

        
      </div><!-- months_since-method -->

    
      <div id="method-i-next_month" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">next_month</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Short-hand for <a
href="Time.html#method-i-months_since">#months_since</a>(1)</p>
          

          
          <div class="method-source-code" id="next_month-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 161</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">next_month</span>
  <span class="ruby-identifier">months_since</span>(<span class="ruby-value">1</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- next_month-source -->
          
        </div>

        

        
      </div><!-- next_month-method -->

    
      <div id="method-i-next_week" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">next_week</span><span
            class="method-args">(day = :monday)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the start of the
given day in next week (default is :monday).</p>
          

          
          <div class="method-source-code" id="next_week-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 205</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">next_week</span>(<span class="ruby-identifier">day</span> = <span class="ruby-value">:monday</span>)
  <span class="ruby-identifier">since</span>(<span class="ruby-value">1</span>.<span class="ruby-identifier">week</span>).<span class="ruby-identifier">beginning_of_week</span>.<span class="ruby-identifier">since</span>(<span class="ruby-constant">DAYS_INTO_WEEK</span>[<span class="ruby-identifier">day</span>].<span class="ruby-identifier">day</span>).<span class="ruby-identifier">change</span>(<span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- next_week-source -->
          
        </div>

        

        
      </div><!-- next_week-method -->

    
      <div id="method-i-next_year" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">next_year</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Short-hand for <a href="Time.html#method-i-years_since">#years_since</a>(1)</p>
          

          
          <div class="method-source-code" id="next_year-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 151</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">next_year</span>
  <span class="ruby-identifier">years_since</span>(<span class="ruby-value">1</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- next_year-source -->
          
        </div>

        

        
      </div><!-- next_year-method -->

    
      <div id="method-i-past-3F" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">past?</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Tells whether the <a href="Time.html">Time</a> object’s time lies in the
past</p>
          

          
          <div class="method-source-code" id="past-3F-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 51</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">past?</span>
  <span class="ruby-keyword">self</span> <span class="ruby-operator">&lt;</span> <span class="ruby-operator">::</span><span class="ruby-constant">Time</span>.<span class="ruby-identifier">current</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- past-3F-source -->
          
        </div>

        

        
      </div><!-- past-3F-method -->

    
      <div id="method-i-prev_month" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">prev_month</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Short-hand for <a href="Time.html#method-i-months_ago">#months_ago</a>(1)</p>
          

          
          <div class="method-source-code" id="prev_month-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 156</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">prev_month</span>
  <span class="ruby-identifier">months_ago</span>(<span class="ruby-value">1</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- prev_month-source -->
          
        </div>

        

        
      </div><!-- prev_month-method -->

    
      <div id="method-i-prev_week" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">prev_week</span><span
            class="method-args">(day = :monday)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the start of the
given day in the previous week (default is :monday).</p>
          

          
          <div class="method-source-code" id="prev_week-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 200</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">prev_week</span>(<span class="ruby-identifier">day</span> = <span class="ruby-value">:monday</span>)
  <span class="ruby-identifier">ago</span>(<span class="ruby-value">1</span>.<span class="ruby-identifier">week</span>).<span class="ruby-identifier">beginning_of_week</span>.<span class="ruby-identifier">since</span>(<span class="ruby-constant">DAYS_INTO_WEEK</span>[<span class="ruby-identifier">day</span>].<span class="ruby-identifier">day</span>).<span class="ruby-identifier">change</span>(<span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- prev_week-source -->
          
        </div>

        

        
      </div><!-- prev_week-method -->

    
      <div id="method-i-prev_year" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">prev_year</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Short-hand for <a href="Time.html#method-i-years_ago">#years_ago</a>(1)</p>
          

          
          <div class="method-source-code" id="prev_year-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 146</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">prev_year</span>
  <span class="ruby-identifier">years_ago</span>(<span class="ruby-value">1</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- prev_year-source -->
          
        </div>

        

        
      </div><!-- prev_year-method -->

    
      <div id="method-i-seconds_since_midnight" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">seconds_since_midnight</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Seconds since midnight: Time.now.<a
href="Time.html#method-i-seconds_since_midnight">#seconds_since_midnight</a></p>
          

          
          <div class="method-source-code" id="seconds_since_midnight-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 66</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">seconds_since_midnight</span>
  <span class="ruby-identifier">to_i</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">change</span>(<span class="ruby-value">:hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>).<span class="ruby-identifier">to_i</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">usec</span> <span class="ruby-operator">/</span> <span class="ruby-value">1.0e+6</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- seconds_since_midnight-source -->
          
        </div>

        

        
      </div><!-- seconds_since_midnight-method -->

    
      <div id="method-i-since" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">since</span><span
            class="method-args">(seconds)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the time a number
of seconds since the instance time</p>
          

          
          <div class="method-source-code" id="since-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 113</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">since</span>(<span class="ruby-identifier">seconds</span>)
  <span class="ruby-keyword">self</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">seconds</span>
<span class="ruby-keyword">rescue</span>
  <span class="ruby-identifier">to_datetime</span>.<span class="ruby-identifier">since</span>(<span class="ruby-identifier">seconds</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- since-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-in">in</a>
        </div>
        

        
      </div><!-- since-method -->

    
      <div id="method-i-sunday" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">sunday</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <code>Date</code>/<code>DateTime</code> representing the end
of this week. Week is assumed to start on a Monday. <code>DateTime</code>
objects have their time set to 23:59:59.</p>
          

          
          <div class="method-source-code" id="sunday-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 195</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">sunday</span>
  <span class="ruby-identifier">end_of_week</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- sunday-source -->
          
        </div>

        

        
      </div><!-- sunday-method -->

    
      <div id="method-i-to_date" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">to_date</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Converts a <a href="Time.html">Time</a> object to a <a
href="Date.html">Date</a>, dropping hour, minute, and second precision.</p>

<pre class="ruby"><span class="ruby-identifier">my_time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>  <span class="ruby-comment"># =&gt; Mon Nov 12 22:59:51 -0500 2007</span>
<span class="ruby-identifier">my_time</span>.<span class="ruby-identifier">to_date</span>     <span class="ruby-comment"># =&gt; Mon, 12 Nov 2007</span>

<span class="ruby-identifier">your_time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-string">&quot;1/13/2009 1:13:03 P.M.&quot;</span>)  <span class="ruby-comment"># =&gt; Tue Jan 13 13:13:03 -0500 2009</span>
<span class="ruby-identifier">your_time</span>.<span class="ruby-identifier">to_date</span>                                 <span class="ruby-comment"># =&gt; Tue, 13 Jan 2009</span>
</pre>
          

          
          <div class="method-source-code" id="to_date-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/conversions.rb, line 65</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_date</span>
  <span class="ruby-operator">::</span><span class="ruby-constant">Date</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">year</span>, <span class="ruby-identifier">month</span>, <span class="ruby-identifier">day</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- to_date-source -->
          
        </div>

        

        
      </div><!-- to_date-method -->

    
      <div id="method-i-to_datetime" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">to_datetime</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Converts a <a href="Time.html">Time</a> instance to a Ruby <a
href="DateTime.html">DateTime</a> instance, preserving UTC offset.</p>

<pre class="ruby"><span class="ruby-identifier">my_time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>    <span class="ruby-comment"># =&gt; Mon Nov 12 23:04:21 -0500 2007</span>
<span class="ruby-identifier">my_time</span>.<span class="ruby-identifier">to_datetime</span>   <span class="ruby-comment"># =&gt; Mon, 12 Nov 2007 23:04:21 -0500</span>

<span class="ruby-identifier">your_time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-string">&quot;1/13/2009 1:13:03 P.M.&quot;</span>)  <span class="ruby-comment"># =&gt; Tue Jan 13 13:13:03 -0500 2009</span>
<span class="ruby-identifier">your_time</span>.<span class="ruby-identifier">to_datetime</span>                             <span class="ruby-comment"># =&gt; Tue, 13 Jan 2009 13:13:03 -0500</span>
</pre>
          

          
          <div class="method-source-code" id="to_datetime-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/conversions.rb, line 82</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_datetime</span>
  <span class="ruby-operator">::</span><span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">civil</span>(<span class="ruby-identifier">year</span>, <span class="ruby-identifier">month</span>, <span class="ruby-identifier">day</span>, <span class="ruby-identifier">hour</span>, <span class="ruby-identifier">min</span>, <span class="ruby-identifier">sec</span>, <span class="ruby-constant">Rational</span>(<span class="ruby-identifier">utc_offset</span>, <span class="ruby-value">86400</span>))
<span class="ruby-keyword">end</span></pre>
          </div><!-- to_datetime-source -->
          
        </div>

        

        
      </div><!-- to_datetime-method -->

    
      <div id="method-i-to_default_s" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">to_default_s</span><span
            class="method-args">(format = :default)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-to_s">to_s</a>
        </div>
        
      </div><!-- to_default_s-method -->

    
      <div id="method-i-to_formatted_s" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">to_formatted_s</span><span
            class="method-args">(format = :default)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Converts to a formatted string. See <a
href="Time.html#DATE_FORMATS">DATE_FORMATS</a> for builtin formats.</p>

<p>This method is aliased to <code>to_s</code>.</p>

<pre class="ruby"><span class="ruby-identifier">time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>                     <span class="ruby-comment"># =&gt; Thu Jan 18 06:10:17 CST 2007</span>

<span class="ruby-identifier">time</span>.<span class="ruby-identifier">to_formatted_s</span>(:<span class="ruby-identifier">time</span>)          <span class="ruby-comment"># =&gt; &quot;06:10&quot;</span>
<span class="ruby-identifier">time</span>.<span class="ruby-identifier">to_s</span>(:<span class="ruby-identifier">time</span>)                    <span class="ruby-comment"># =&gt; &quot;06:10&quot;</span>

<span class="ruby-identifier">time</span>.<span class="ruby-identifier">to_formatted_s</span>(:<span class="ruby-identifier">db</span>)            <span class="ruby-comment"># =&gt; &quot;2007-01-18 06:10:17&quot;</span>
<span class="ruby-identifier">time</span>.<span class="ruby-identifier">to_formatted_s</span>(:<span class="ruby-identifier">number</span>)        <span class="ruby-comment"># =&gt; &quot;20070118061017&quot;</span>
<span class="ruby-identifier">time</span>.<span class="ruby-identifier">to_formatted_s</span>(:<span class="ruby-identifier">short</span>)         <span class="ruby-comment"># =&gt; &quot;18 Jan 06:10&quot;</span>
<span class="ruby-identifier">time</span>.<span class="ruby-identifier">to_formatted_s</span>(:<span class="ruby-identifier">long</span>)          <span class="ruby-comment"># =&gt; &quot;January 18, 2007 06:10&quot;</span>
<span class="ruby-identifier">time</span>.<span class="ruby-identifier">to_formatted_s</span>(:<span class="ruby-identifier">long_ordinal</span>)  <span class="ruby-comment"># =&gt; &quot;January 18th, 2007 06:10&quot;</span>
<span class="ruby-identifier">time</span>.<span class="ruby-identifier">to_formatted_s</span>(:<span class="ruby-identifier">rfc822</span>)        <span class="ruby-comment"># =&gt; &quot;Thu, 18 Jan 2007 06:10:17 -0600&quot;</span>
</pre>

<h2 id="method-i-to_formatted_s-label-Adding+your+own+time+formats+to+to_formatted_s">Adding your own time formats to <code>to_formatted_s</code></h2>

<p>You can add your own formats to the Time::DATE_FORMATS hash. Use the format
name as the hash key and either a strftime string or Proc instance that
takes a time argument as the value.</p>

<pre class="ruby"><span class="ruby-comment"># config/initializers/time_formats.rb</span>
<span class="ruby-constant">Time</span><span class="ruby-operator">::</span><span class="ruby-constant">DATE_FORMATS</span>[:<span class="ruby-identifier">month_and_year</span>] = <span class="ruby-string">&quot;%B %Y&quot;</span>
<span class="ruby-constant">Time</span><span class="ruby-operator">::</span><span class="ruby-constant">DATE_FORMATS</span>[:<span class="ruby-identifier">short_ordinal</span>] = <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">time</span><span class="ruby-operator">|</span> <span class="ruby-identifier">time</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-node">&quot;%B #{time.day.ordinalize}&quot;</span>) }
</pre>
          

          
          <div class="method-source-code" id="to_formatted_s-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/conversions.rb, line 40</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_formatted_s</span>(<span class="ruby-identifier">format</span> = <span class="ruby-value">:default</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">formatter</span> = <span class="ruby-constant">DATE_FORMATS</span>[<span class="ruby-identifier">format</span>]
    <span class="ruby-identifier">formatter</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:call</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">formatter</span>.<span class="ruby-identifier">call</span>(<span class="ruby-keyword">self</span>).<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">strftime</span>(<span class="ruby-identifier">formatter</span>)
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">to_default_s</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- to_formatted_s-source -->
          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-to_s">to_s</a>
        </div>
        

        
      </div><!-- to_formatted_s-method -->

    
      <div id="method-i-to_s" class="method-detail method-alias">
        
        <div class="method-heading">
          <span class="method-name">to_s</span><span
            class="method-args">(format = :default)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
        </div>

        
        <div class="aliases">
          Also aliased as: <a href="Time.html#method-i-to_default_s">to_default_s</a>
        </div>
        

        
        <div class="aliases">
          Alias for: <a href="Time.html#method-i-to_formatted_s">to_formatted_s</a>
        </div>
        
      </div><!-- to_s-method -->

    
      <div id="method-i-to_time" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">to_time</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>A method to keep <a href="Time.html">Time</a>, <a href="Date.html">Date</a>
and <a href="DateTime.html">DateTime</a> instances interchangeable on
conversions. In this case, it simply returns <code>self</code>.</p>
          

          
          <div class="method-source-code" id="to_time-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/conversions.rb, line 71</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_time</span>
  <span class="ruby-keyword">self</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- to_time-source -->
          
        </div>

        

        
      </div><!-- to_time-method -->

    
      <div id="method-i-today-3F" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">today?</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Tells whether the <a href="Time.html">Time</a> object’s time is today</p>
          

          
          <div class="method-source-code" id="today-3F-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 56</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">today?</span>
  <span class="ruby-identifier">to_date</span> <span class="ruby-operator">==</span> <span class="ruby-operator">::</span><span class="ruby-constant">Date</span>.<span class="ruby-identifier">current</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- today-3F-source -->
          
        </div>

        

        
      </div><!-- today-3F-method -->

    
      <div id="method-i-tomorrow" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">tomorrow</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Convenience method which returns a new <a href="Time.html">Time</a>
representing the time 1 day since the instance time</p>
          

          
          <div class="method-source-code" id="tomorrow-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 283</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tomorrow</span>
  <span class="ruby-identifier">advance</span>(<span class="ruby-value">:days</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- tomorrow-source -->
          
        </div>

        

        
      </div><!-- tomorrow-method -->

    
      <div id="method-i-weeks_ago" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">weeks_ago</span><span
            class="method-args">(weeks)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the time a number
of specified weeks ago.</p>
          

          
          <div class="method-source-code" id="weeks_ago-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 121</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">weeks_ago</span>(<span class="ruby-identifier">weeks</span>)
  <span class="ruby-identifier">advance</span>(<span class="ruby-value">:weeks</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-operator">-</span><span class="ruby-identifier">weeks</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- weeks_ago-source -->
          
        </div>

        

        
      </div><!-- weeks_ago-method -->

    
      <div id="method-i-years_ago" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">years_ago</span><span
            class="method-args">(years)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the time a number
of specified years ago</p>
          

          
          <div class="method-source-code" id="years_ago-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 136</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">years_ago</span>(<span class="ruby-identifier">years</span>)
  <span class="ruby-identifier">advance</span>(<span class="ruby-value">:years</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-operator">-</span><span class="ruby-identifier">years</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- years_ago-source -->
          
        </div>

        

        
      </div><!-- years_ago-method -->

    
      <div id="method-i-years_since" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">years_since</span><span
            class="method-args">(years)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Returns a new <a href="Time.html">Time</a> representing the time a number
of specified years in the future</p>
          

          
          <div class="method-source-code" id="years_since-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 141</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">years_since</span>(<span class="ruby-identifier">years</span>)
  <span class="ruby-identifier">advance</span>(<span class="ruby-value">:years</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">years</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- years_since-source -->
          
        </div>

        

        
      </div><!-- years_since-method -->

    
      <div id="method-i-yesterday" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">yesterday</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>Convenience method which returns a new <a href="Time.html">Time</a>
representing the time 1 day ago</p>
          

          
          <div class="method-source-code" id="yesterday-source">
            <pre><span class="ruby-comment"># File /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/core_ext/time/calculations.rb, line 278</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">yesterday</span>
  <span class="ruby-identifier">advance</span>(<span class="ruby-value">:days</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">-1</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- yesterday-source -->
          
        </div>

        

        
      </div><!-- yesterday-method -->

    
    </section><!-- public-instance-method-details -->
  
  </section><!-- 5Buntitled-5D -->

</div><!-- documentation -->


<footer id="validator-badges">
  <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
  <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
  <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
</footer>

